logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

NS_GET_NSTYPE - discovering the namespace type

Description

The NS_GET_NSTYPE operation can be used to discover the type of namespace referred to by the file descriptor fd. fd refers to a /proc/pid/ns/* file.

History

Linux 4.11.

Name

NS_GET_NSTYPE - discovering the namespace type

Return Value

On success, the return value is one of the CLONE_NEW* values that can be specified to clone(2) or unshare(2) in order to create a namespace. On error, -1 is returned, and errno is set to indicate the error.

See Also

ioctl(2), ioctl_nsfs(2) Linux man-pages 6.9.1 2024-06-13 NS_GET_NSTYPE(2const)

Standards

Linux.

Synopsis

#include<linux/nsfs.h> /* Definition of NS_GET_NSTYPE */ #include<sys/ioctl.h>intioctl(intfd,NS_GET_NSTYPE);

See Also