Changeset View
Changeset View
Standalone View
Standalone View
sys/rpc/rpcsec_tls/rpctls_impl.c
Show First 20 Lines • Show All 705 Lines • ▼ Show 20 Lines | |||||
bool | bool | ||||
rpctls_getinfo(u_int *maxlenp, bool rpctlscd_run, bool rpctlssd_run) | rpctls_getinfo(u_int *maxlenp, bool rpctlscd_run, bool rpctlssd_run) | ||||
{ | { | ||||
u_int maxlen; | u_int maxlen; | ||||
bool enable; | bool enable; | ||||
int error; | int error; | ||||
size_t siz; | size_t siz; | ||||
if (PMAP_HAS_DMAP == 0 || !mb_use_ext_pgs) | if (!mb_use_ext_pgs) | ||||
jhb: I think you have to keep this check in the case that a user forces mb_use_ext_pgs on via the… | |||||
return (false); | return (false); | ||||
siz = sizeof(enable); | siz = sizeof(enable); | ||||
error = kernel_sysctlbyname(curthread, "kern.ipc.tls.enable", | error = kernel_sysctlbyname(curthread, "kern.ipc.tls.enable", | ||||
&enable, &siz, NULL, 0, NULL, 0); | &enable, &siz, NULL, 0, NULL, 0); | ||||
if (error != 0) | if (error != 0) | ||||
return (false); | return (false); | ||||
siz = sizeof(maxlen); | siz = sizeof(maxlen); | ||||
error = kernel_sysctlbyname(curthread, "kern.ipc.tls.maxlen", | error = kernel_sysctlbyname(curthread, "kern.ipc.tls.maxlen", | ||||
Show All 11 Lines |
I think you have to keep this check in the case that a user forces mb_use_ext_pgs on via the tunable on a 32-bit system.