tools/include/nolibc/sys/utsname.h

Source file repositories/reference/linux-study-clean/tools/include/nolibc/sys/utsname.h

File Facts

System
Linux kernel
Corpus path
tools/include/nolibc/sys/utsname.h
Extension
.h
Size
756 bytes
Lines
43
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

struct utsname {
	char sysname[65];
	char nodename[65];
	char release[65];
	char version[65];
	char machine[65];
	char domainname[65];
};

static __attribute__((unused))
int _sys_uname(struct utsname *buf)
{
	return __nolibc_syscall1(__NR_uname, buf);
}

static __attribute__((unused))
int uname(struct utsname *buf)
{
	return __sysret(_sys_uname(buf));
}

#endif /* _NOLIBC_SYS_UTSNAME_H */

Annotation

Implementation Notes