Lines Matching refs:snamep
251 static abi_long do_freebsd_sysctl_oid(CPUArchState *env, int32_t *snamep, in do_freebsd_sysctl_oid() argument
263 oidfmt(snamep, namelen, NULL, &kind); in do_freebsd_sysctl_oid()
266 switch (snamep[0]) { in do_freebsd_sysctl_oid()
268 switch (snamep[1]) { in do_freebsd_sysctl_oid()
291 switch (snamep[1]) { in do_freebsd_sysctl_oid()
336 int mib[2] = {snamep[0], snamep[1]}; in do_freebsd_sysctl_oid()
372 if (oid_hw_availpages && snamep[1] == oid_hw_availpages) { in do_freebsd_sysctl_oid()
389 if (oid_hw_pagesizes && snamep[1] == oid_hw_pagesizes) { in do_freebsd_sysctl_oid()
422 ret = get_errno(sysctl(snamep, namelen, holdp, &holdlen, hnewp, newlen)); in do_freebsd_sysctl_oid()
425 if (snamep[0] == CTL_SYSCTL) { in do_freebsd_sysctl_oid()
426 switch (snamep[1]) { in do_freebsd_sysctl_oid()
487 char *snamep = NULL; in do_freebsd_sysctlbyname() local
499 snamep = lock_user_string(namep); in do_freebsd_sysctlbyname()
500 if (snamep == NULL) { in do_freebsd_sysctlbyname()
518 if (sysctlnametomib(snamep, oid, &oidplen) != 0) { in do_freebsd_sysctlbyname()
534 unlock_user(snamep, namep, 0); in do_freebsd_sysctlbyname()
548 int32_t *snamep = g_malloc(sizeof(int32_t) * namelen), *p, *q, i; in do_freebsd_sysctl() local
574 for (p = hnamep, q = snamep, i = 0; i < namelen; p++, i++, q++) { in do_freebsd_sysctl()
578 ret = do_freebsd_sysctl_oid(env, snamep, namelen, holdp, &holdlen, hnewp, in do_freebsd_sysctl()
591 g_free(snamep); in do_freebsd_sysctl()