Re: [PATCH v2 11/12] bsd-user: implement sysctlbyname(2)
On 2/13/23 14:27, Warner Losh wrote: +oidplen = sizeof(oid) / sizeof(int); ARRAY_SIZE(oid) Otherwise, Reviewed-by: Richard Henderson r~
[PATCH v2 11/12] bsd-user: implement sysctlbyname(2)
From: Kyle Evans do_freebsd_sysctlbyname needs to translate the 'name' back down to a OID so we can intercept the special ones. Do that and call the common wrapper do_freebsd_sysctl_oid. Signed-off-by: Kyle Evans Reviewed-by: Warner Losh Signed-off-by: Warner Losh --- bsd-user/freebsd/os-sys