diff options
Diffstat (limited to 'usr/src/uts/common/vm/page.h')
| -rw-r--r-- | usr/src/uts/common/vm/page.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/src/uts/common/vm/page.h b/usr/src/uts/common/vm/page.h index ae9b0be758..29466d15ef 100644 --- a/usr/src/uts/common/vm/page.h +++ b/usr/src/uts/common/vm/page.h @@ -21,6 +21,7 @@ /* * Copyright (c) 1986, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2017, Joyent, Inc. + * Copyright 2021 Oxide Computer Company */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ @@ -342,13 +343,13 @@ struct as; * * So, as a quick summary: * - * pse_mutex[]'s protect the p_selock and p_cv fields. + * pse_mutex[]'s protect the p_selock and p_cv fields. * - * p_selock protects the p_free, p_age, p_vnode, p_offset and p_hash, + * p_selock protects the p_free, p_age, p_vnode, p_offset and p_hash, * - * ph_mutex[]'s protect the page_hash[] array and its chains. + * ph_mutex[]'s protect the page_hash[] array and its chains. * - * vph_mutex[]'s protect the v_pages field and the vp page chains. + * vph_mutex[]'s protect the v_pages field and the vp page chains. * * First lock the page, then the hash chain, then the vnode chain. When * this is not possible `trylocks' must be used. Sleeping while holding @@ -763,6 +764,7 @@ void page_lock_delete(page_t *); int page_deleted(page_t *); int page_pp_lock(page_t *, int, int); void page_pp_unlock(page_t *, int, int); +int page_xresv(pgcnt_t, uint_t, int (*)(void)); int page_resv(pgcnt_t, uint_t); void page_unresv(pgcnt_t); void page_pp_useclaim(page_t *, page_t *, uint_t); @@ -1079,7 +1081,7 @@ typedef struct kpm_hlk { * The state about how a kpm page is mapped and whether it is ready to go * is indicated by the following 1 byte kpm_spage structure. This byte is * split into two 4-bit parts - kp_mapped and kp_mapped_go. - * - kp_mapped == 1 the page is mapped cacheable + * - kp_mapped == 1 the page is mapped cacheable * - kp_mapped == 2 the page is mapped non-cacheable * - kp_mapped_go == 1 the mapping is ready to be dropped in * - kp_mapped_go == 0 the mapping is not ready to be dropped in. |
