Print this page
6149 use NULL capable segop as a shorthand for no-capabilities

*** 140,150 **** static int segspt_shmpagelock(struct seg *, caddr_t, size_t, struct page ***, enum lock_type, enum seg_rw); static int segspt_shmsetpgsz(struct seg *, caddr_t, size_t, uint_t); static int segspt_shmgetmemid(struct seg *, caddr_t, memid_t *); static lgrp_mem_policy_info_t *segspt_shmgetpolicy(struct seg *, caddr_t); - static int segspt_shmcapable(struct seg *, segcapability_t); struct seg_ops segspt_shmops = { .dup = segspt_shmdup, .unmap = segspt_shmunmap, .free = segspt_shmfree, --- 140,149 ----
*** 165,175 **** .dump = segspt_shmdump, .pagelock = segspt_shmpagelock, .setpagesize = segspt_shmsetpgsz, .getmemid = segspt_shmgetmemid, .getpolicy = segspt_shmgetpolicy, - .capable = segspt_shmcapable, }; static void segspt_purge(struct seg *seg); static int segspt_reclaim(void *, caddr_t, size_t, struct page **, enum seg_rw, int); --- 164,173 ----
*** 3104,3115 **** anon_index = seg_page(seg, addr); policy_info = lgrp_shm_policy_get(amp, anon_index, NULL, 0); return (policy_info); } - - /*ARGSUSED*/ - static int - segspt_shmcapable(struct seg *seg, segcapability_t capability) - { - return (0); - } --- 3102,3106 ----