Print this page
6154 const-ify segment ops structures
*** 104,114 ****
size_t s_size; /* size in bytes */
uint_t s_szc; /* max page size code */
uint_t s_flags; /* flags for segment, see below */
struct as *s_as; /* containing address space */
avl_node_t s_tree; /* AVL tree links to segs in this as */
! struct seg_ops *s_ops; /* ops vector: see below */
void *s_data; /* private data for instance */
kmutex_t s_pmtx; /* protects seg's pcache list */
pcache_link_t s_phead; /* head of seg's pcache list */
} seg_t;
--- 104,114 ----
size_t s_size; /* size in bytes */
uint_t s_szc; /* max page size code */
uint_t s_flags; /* flags for segment, see below */
struct as *s_as; /* containing address space */
avl_node_t s_tree; /* AVL tree links to segs in this as */
! const struct seg_ops *s_ops; /* ops vector: see below */
void *s_data; /* private data for instance */
kmutex_t s_pmtx; /* protects seg's pcache list */
pcache_link_t s_phead; /* head of seg's pcache list */
} seg_t;