/kernel/liteos_a/testsuites/unittest/libc/misc/full/ |
D | misc_test_006.cpp | 34 #define INVALID_ADDR_FIRST_PAGE (reinterpret_cast<struct utsname *>(0x1200000)) 35 #define INVALID_ADDR_USER_ADDR (reinterpret_cast<struct utsname *>(0x1000000)) 36 #define INVALID_ADDR_KERNEL_READONLY_ADDR (reinterpret_cast<struct utsname *>(0x4016c75c)) 41 struct utsname name; in TestCase() 43 ret = uname((struct utsname *)NULL); in TestCase()
|
/kernel/linux/linux-5.10/tools/testing/selftests/wireguard/qemu/ |
D | init.c | 47 struct utsname utsname; in print_banner() local 50 if (uname(&utsname) < 0) in print_banner() 53 …" WireGuard Test Suite on ") + strlen(utsname.sysname) + strlen(utsname.release) + strlen… in print_banner() 54 …b[0m\n\x1b[45m\x1b[33m\x1b[1m%*.s\x1b[0m\n\n", len, "", utsname.sysname, utsname.release, utsname.… in print_banner()
|
/kernel/linux/linux-5.10/fs/proc/ |
D | version.c | 12 utsname()->sysname, in version_proc_show() 13 utsname()->release, in version_proc_show() 14 utsname()->version); in version_proc_show()
|
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/tags/ |
D | tags_test.c | 18 struct utsname *ptr; in main() 23 ptr = (struct utsname *)malloc(sizeof(*ptr)); in main() 26 ptr = (struct utsname *)SET_TAG(ptr, tag); in main()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | util.c | 350 struct utsname utsname; in fetch_kernel_version() local 358 if (uname(&utsname)) in fetch_kernel_version() 362 strncpy(str, utsname.release, str_size); in fetch_kernel_version() 369 err = sscanf(utsname.release, "%d.%d.%d", in fetch_kernel_version() 374 utsname.release); in fetch_kernel_version()
|
D | env.c | 286 struct utsname uts; in perf_env__read_arch() 357 static struct utsname uts = { .machine[0] = '\0', }; in perf_env__arch()
|
/kernel/liteos_a/syscall/ |
D | misc_syscall.c | 50 int SysUname(struct utsname *name) in SysUname() 53 struct utsname tmpName; in SysUname() 54 ret = LOS_ArchCopyFromUser(&tmpName, name, sizeof(struct utsname)); in SysUname() 62 ret = LOS_ArchCopyToUser(name, &tmpName, sizeof(struct utsname)); in SysUname()
|
/kernel/linux/linux-5.10/arch/um/os-Linux/ |
D | util.c | 50 struct utsname host; in setup_machinename() 71 struct utsname host; in setup_hostinfo()
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
D | osf_sys.c | 535 memcpy(tmp + 0 * 32, utsname()->sysname, 32); in SYSCALL_DEFINE1() 536 memcpy(tmp + 1 * 32, utsname()->nodename, 32); in SYSCALL_DEFINE1() 537 memcpy(tmp + 2 * 32, utsname()->release, 32); in SYSCALL_DEFINE1() 538 memcpy(tmp + 3 * 32, utsname()->version, 32); in SYSCALL_DEFINE1() 539 memcpy(tmp + 4 * 32, utsname()->machine, 32); in SYSCALL_DEFINE1() 570 kname = utsname()->domainname; in SYSCALL_DEFINE2() 727 utsname()->sysname, in SYSCALL_DEFINE3() 728 utsname()->nodename, in SYSCALL_DEFINE3() 729 utsname()->release, in SYSCALL_DEFINE3() 730 utsname()->version, in SYSCALL_DEFINE3() [all …]
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ipconfig.c | 702 len = strlen(utsname()->nodename); in ic_dhcp_init_options() 704 memcpy(e, utsname()->nodename, len); in ic_dhcp_init_options() 923 ic_bootp_string(utsname()->nodename, ext+1, *ext, in ic_do_bootp_ext() 942 ic_bootp_string(utsname()->domainname, ext+1, *ext, in ic_do_bootp_ext() 1575 utsname()->nodename, ic_domain, utsname()->domainname); in ip_auto_config() 1738 strlcpy(utsname()->domainname, dp, in ip_auto_config_setup() 1739 sizeof(utsname()->domainname)); in ip_auto_config_setup() 1741 strlcpy(utsname()->nodename, ip, in ip_auto_config_setup() 1742 sizeof(utsname()->nodename)); in ip_auto_config_setup()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
D | sys_sparc_32.c | 208 nlen = strlen(utsname()->domainname) + 1; in SYSCALL_DEFINE2() 212 memcpy(tmp, utsname()->domainname, nlen); in SYSCALL_DEFINE2()
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
D | mconsole_kern.c | 108 sprintf(version, "%s %s %s %s %s", utsname()->sysname, in mconsole_version() 109 utsname()->nodename, utsname()->release, utsname()->version, in mconsole_version() 110 utsname()->machine); in mconsole_version()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/efa/ |
D | efa_main.c | 212 strlcpy(hinf->os_dist_str, utsname()->release, in efa_set_host_info() 213 min(sizeof(hinf->os_dist_str), sizeof(utsname()->release))); in efa_set_host_info() 215 strlcpy(hinf->kernel_ver_str, utsname()->version, in efa_set_host_info() 216 min(sizeof(hinf->kernel_ver_str), sizeof(utsname()->version))); in efa_set_host_info()
|
/kernel/linux/linux-5.10/include/linux/ |
D | utsname.h | 80 static inline struct new_utsname *utsname(void) in utsname() function
|
/kernel/linux/linux-5.10/tools/power/cpupower/utils/ |
D | cpupower-set.c | 35 struct utsname uts; in cmd_set()
|
D | cpupower-info.c | 34 struct utsname uts; in cmd_info()
|
D | cpupower.c | 177 struct utsname uts; in main()
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | nfsroot.c | 270 tmp, utsname()->nodename); in root_nfs_data()
|
/kernel/linux/linux-5.10/kernel/ |
D | sys.c | 1259 memcpy(&tmp, utsname(), sizeof(tmp)); in SYSCALL_DEFINE1() 1283 memcpy(&tmp, utsname(), sizeof(tmp)); in SYSCALL_DEFINE1() 1305 memcpy(&tmp.sysname, &utsname()->sysname, __OLD_UTS_LEN); in SYSCALL_DEFINE1() 1306 memcpy(&tmp.nodename, &utsname()->nodename, __OLD_UTS_LEN); in SYSCALL_DEFINE1() 1307 memcpy(&tmp.release, &utsname()->release, __OLD_UTS_LEN); in SYSCALL_DEFINE1() 1308 memcpy(&tmp.version, &utsname()->version, __OLD_UTS_LEN); in SYSCALL_DEFINE1() 1309 memcpy(&tmp.machine, &utsname()->machine, __OLD_UTS_LEN); in SYSCALL_DEFINE1() 1337 u = utsname(); in SYSCALL_DEFINE2() 1358 u = utsname(); in SYSCALL_DEFINE2() 1390 u = utsname(); in SYSCALL_DEFINE2()
|
/kernel/linux/linux-5.10/drivers/target/tcm_fc/ |
D | tfc_conf.c | 372 ""UTS_RELEASE"\n", utsname()->sysname, utsname()->machine); in ft_wwn_version_show()
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
D | elf.h | 133 #define ELF_PLATFORM (utsname()->machine)
|
/kernel/linux/linux-5.10/tools/power/cpupower/bench/ |
D | parse.c | 56 struct utsname sysdata; in prepare_output()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | core_extern.c | 13 struct utsname info; in get_kernel_version()
|
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 1818 QLA2XXX_VERSION, utsname()->sysname, in tcm_qla2xxx_wwn_version_show() 1819 utsname()->machine, utsname()->release); in tcm_qla2xxx_wwn_version_show() 1920 QLA2XXX_VERSION, utsname()->sysname, in tcm_qla2xxx_register_configfs() 1921 utsname()->machine, utsname()->release); in tcm_qla2xxx_register_configfs()
|
/kernel/liteos_a/compat/posix/src/ |
D | misc.c | 54 int uname(struct utsname *name) in uname()
|