Lines Matching refs:hat

58  * in <vm/hat_xxx.h>.  The hat layer manages the address
63 struct hat;
86 * One time hat initialization
91 * Notify hat of a system dump
98 * struct hat *hat_alloc(as)
99 * allocated a hat structure for as.
101 * void hat_free_start(hat)
102 * informs hat layer process has finished executing but as has not
105 * void hat_free_end(hat)
106 * informs hat layer as is being destroyed. hat layer cannot use as
109 * void hat_swapin(hat)
110 * allocate any hat resources required for process being swapped in.
112 * void hat_swapout(hat)
113 * deallocate hat resources for process being swapped out.
115 * size_t hat_get_mapped_size(hat)
116 * returns number of bytes that have valid mappings in hat.
118 * void hat_stats_enable(hat)
119 * void hat_stats_disable(hat)
120 * enables/disables collection of stats for hat.
132 struct hat *hat_alloc(struct as *);
133 void hat_free_start(struct hat *);
134 void hat_free_end(struct hat *);
135 int hat_dup(struct hat *, struct hat *, caddr_t, size_t, uint_t);
136 void hat_swapin(struct hat *);
137 void hat_swapout(struct hat *);
138 size_t hat_get_mapped_size(struct hat *);
139 int hat_stats_enable(struct hat *);
140 void hat_stats_disable(struct hat *);
146 * void hat_memload(hat, addr, pp, attr, flags)
149 * void hat_memload_array(hat, addr, len, ppa, attr, flags)
152 * void hat_devload(hat, addr, len, pf, attr, flags)
155 * void hat_unlock(hat, addr, len)
158 * void hat_unload(hat, addr, len, flags)
159 * void hat_unload_callback(hat, addr, len, flags, callback)
162 * void hat_sync(hat, addr, len, flags)
165 * void hat_map(hat, addr, len, flags)
167 * void hat_setattr(hat, addr, len, attr)
168 * void hat_clrattr(hat, addr, len, attr)
169 * void hat_chgattr(hat, addr, len, attr)
172 * uint_t hat_getattr(hat, addr, *attr)
173 * returns attr for <hat,addr> in *attr. returns 0 if there was a
177 * size_t hat_getpagesize(hat, addr)
178 * returns pagesize in bytes for <hat, addr>. returns -1 if there is
181 * pfn_t hat_getpfnum(hat, addr)
182 * returns pfn for <hat, addr> or PFN_INVALID if mapping is invalid.
184 * int hat_probe(hat, addr)
190 * void hat_unshare(hat, addr, len, szc)
192 * void hat_chgprot(hat, addr, len, vprot)
200 * void hat_flush_range(hat, addr, size)
204 void hat_memload(struct hat *, caddr_t, struct page *, uint_t, uint_t);
205 void hat_memload_array(struct hat *, caddr_t, size_t, struct page **,
207 void hat_memload_region(struct hat *, caddr_t, struct page *, uint_t,
209 void hat_memload_array_region(struct hat *, caddr_t, size_t, struct page **,
212 void hat_devload(struct hat *, caddr_t, size_t, pfn_t, uint_t, int);
214 void hat_unlock(struct hat *, caddr_t, size_t);
215 void hat_unlock_region(struct hat *, caddr_t, size_t, hat_region_cookie_t);
217 void hat_unload(struct hat *, caddr_t, size_t, uint_t);
218 void hat_unload_callback(struct hat *, caddr_t, size_t, uint_t,
220 void hat_flush_range(struct hat *, caddr_t, size_t);
221 void hat_sync(struct hat *, caddr_t, size_t, uint_t);
222 void hat_map(struct hat *, caddr_t, size_t, uint_t);
223 void hat_setattr(struct hat *, caddr_t, size_t, uint_t);
224 void hat_clrattr(struct hat *, caddr_t, size_t, uint_t);
225 void hat_chgattr(struct hat *, caddr_t, size_t, uint_t);
226 uint_t hat_getattr(struct hat *, caddr_t, uint_t *);
227 ssize_t hat_getpagesize(struct hat *, caddr_t);
228 pfn_t hat_getpfnum(struct hat *, caddr_t);
229 int hat_probe(struct hat *, caddr_t);
230 int hat_share(struct hat *, caddr_t, struct hat *, caddr_t, size_t, uint_t);
231 void hat_unshare(struct hat *, caddr_t, size_t, uint_t);
232 void hat_chgprot(struct hat *, caddr_t, size_t, uint_t);
238 * Kernel Physical Mapping (segkpm) hat interface routines.
246 int hat_kpm_fault(struct hat *, caddr_t);
282 * faultcode_t hat_softlock(hat, addr, lenp, ppp, flags);
297 faultcode_t hat_softlock(struct hat *, caddr_t, size_t *,
314 * Services provided to the hat:
327 * Flags to pass to hat routines.
347 * hat layer data structures. This flag forces hat layer
356 #define HAT_FLAGS_RESV 0xFF000000 /* resv for hat impl */
491 void hat_setup(struct hat *, int);
596 void hat_enter(struct hat *);
597 void hat_exit(struct hat *);
602 void hat_join_srd(struct hat *, vnode_t *);
604 hat_region_cookie_t hat_join_region(struct hat *, caddr_t, size_t, void *,
607 void hat_leave_region(struct hat *, hat_region_cookie_t,
609 void hat_dup_region(struct hat *, hat_region_cookie_t);