Lines Matching refs:osname
103 static int linux_set_osname(struct thread *td, char *osname);
110 char osname[LINUX_MAX_UTSNAME]; in linux_sysctl_osname() local
113 linux_get_osname(req->td, osname); in linux_sysctl_osname()
114 error = sysctl_handle_string(oidp, osname, LINUX_MAX_UTSNAME, req); in linux_sysctl_osname()
117 error = linux_set_osname(req->td, osname); in linux_sysctl_osname()
122 SYSCTL_PROC(_compat_linux, OID_AUTO, osname,
291 char *osname, *osrelease; in linux_prison_check() local
302 error = vfs_getopt(opts, "linux.osname", (void **)&osname, &len); in linux_prison_check()
306 if (len == 0 || osname[len - 1] != '\0') in linux_prison_check()
343 char *osname, *osrelease; in linux_prison_set() local
350 error = vfs_getopt(opts, "linux.osname", (void **)&osname, &len); in linux_prison_set()
352 osname = NULL; in linux_prison_set()
386 if (osname) in linux_prison_set()
387 strlcpy(lpr->pr_osname, osname, LINUX_MAX_UTSNAME); in linux_prison_set()
397 SYSCTL_JAIL_PARAM_STRING(_linux, osname, CTLFLAG_RW, LINUX_MAX_UTSNAME,
502 linux_set_osname(struct thread *td, char *osname) in linux_set_osname() argument
508 strlcpy(lpr->pr_osname, osname, LINUX_MAX_UTSNAME); in linux_set_osname()