Print this page
6153 use NULL pagelock segop as a shorthand for ENOTSUP

*** 101,114 **** * Private seg op routines. */ faultcode_t segkpm_fault(struct hat *hat, struct seg *seg, caddr_t addr, size_t len, enum fault_type type, enum seg_rw rw); static void segkpm_badop(void); - static int segkpm_notsup(void); #define SEGKPM_BADOP(t) (t(*)())segkpm_badop - #define SEGKPM_NOTSUP (int(*)())segkpm_notsup static struct seg_ops segkpm_ops = { .dup = SEGKPM_BADOP(int), .unmap = SEGKPM_BADOP(int), .free = SEGKPM_BADOP(void), --- 101,112 ----
*** 124,134 **** .getprot = SEGKPM_BADOP(int), .getoffset = SEGKPM_BADOP(u_offset_t), .gettype = SEGKPM_BADOP(int), .getvp = SEGKPM_BADOP(int), .advise = SEGKPM_BADOP(int), - .pagelock = SEGKPM_NOTSUP, .setpagesize = SEGKPM_BADOP(int), .getmemid = SEGKPM_BADOP(int), .getpolicy = SEGKPM_BADOP(lgrp_mem_policy_info_t *), }; --- 122,131 ----
*** 308,318 **** static void segkpm_badop() {} #endif /* SEGKPM_SUPPORT */ - - static int - segkpm_notsup() - { - return (ENOTSUP); - } --- 305,309 ----