117 .fault = segkpm_fault,
118 .faulta = SEGKPM_BADOP(int),
119 .setprot = SEGKPM_BADOP(int),
120 .checkprot = SEGKPM_BADOP(int),
121 .kluster = SEGKPM_BADOP(int),
122 .swapout = SEGKPM_BADOP(size_t),
123 .sync = SEGKPM_BADOP(int),
124 .incore = SEGKPM_BADOP(size_t),
125 .lockop = SEGKPM_BADOP(int),
126 .getprot = SEGKPM_BADOP(int),
127 .getoffset = SEGKPM_BADOP(u_offset_t),
128 .gettype = SEGKPM_BADOP(int),
129 .getvp = SEGKPM_BADOP(int),
130 .advise = SEGKPM_BADOP(int),
131 .dump = segkpm_dump,
132 .pagelock = SEGKPM_NOTSUP,
133 .setpagesize = SEGKPM_BADOP(int),
134 .getmemid = SEGKPM_BADOP(int),
135 .getpolicy = SEGKPM_BADOP(lgrp_mem_policy_info_t *),
136 .capable = segkpm_capable,
137 .inherit = seg_inherit_notsup,
138 };
139
140 /*
141 * kpm_pgsz and kpm_pgshft are set by platform layer.
142 */
143 size_t kpm_pgsz; /* kpm page size */
144 uint_t kpm_pgshft; /* kpm page shift */
145 u_offset_t kpm_pgoff; /* kpm page offset mask */
146 uint_t kpmp2pshft; /* kpm page to page shift */
147 pgcnt_t kpmpnpgs; /* how many pages per kpm page */
148
149
150 #ifdef SEGKPM_SUPPORT
151
152 int
153 segkpm_create(struct seg *seg, void *argsp)
154 {
155 struct segkpm_data *skd;
156 struct segkpm_crargs *b = (struct segkpm_crargs *)argsp;
157 ushort_t *p;
|
117 .fault = segkpm_fault,
118 .faulta = SEGKPM_BADOP(int),
119 .setprot = SEGKPM_BADOP(int),
120 .checkprot = SEGKPM_BADOP(int),
121 .kluster = SEGKPM_BADOP(int),
122 .swapout = SEGKPM_BADOP(size_t),
123 .sync = SEGKPM_BADOP(int),
124 .incore = SEGKPM_BADOP(size_t),
125 .lockop = SEGKPM_BADOP(int),
126 .getprot = SEGKPM_BADOP(int),
127 .getoffset = SEGKPM_BADOP(u_offset_t),
128 .gettype = SEGKPM_BADOP(int),
129 .getvp = SEGKPM_BADOP(int),
130 .advise = SEGKPM_BADOP(int),
131 .dump = segkpm_dump,
132 .pagelock = SEGKPM_NOTSUP,
133 .setpagesize = SEGKPM_BADOP(int),
134 .getmemid = SEGKPM_BADOP(int),
135 .getpolicy = SEGKPM_BADOP(lgrp_mem_policy_info_t *),
136 .capable = segkpm_capable,
137 };
138
139 /*
140 * kpm_pgsz and kpm_pgshft are set by platform layer.
141 */
142 size_t kpm_pgsz; /* kpm page size */
143 uint_t kpm_pgshft; /* kpm page shift */
144 u_offset_t kpm_pgoff; /* kpm page offset mask */
145 uint_t kpmp2pshft; /* kpm page to page shift */
146 pgcnt_t kpmpnpgs; /* how many pages per kpm page */
147
148
149 #ifdef SEGKPM_SUPPORT
150
151 int
152 segkpm_create(struct seg *seg, void *argsp)
153 {
154 struct segkpm_data *skd;
155 struct segkpm_crargs *b = (struct segkpm_crargs *)argsp;
156 ushort_t *p;
|