tools/perf/util/setns.c

Source file repositories/reference/linux-study-clean/tools/perf/util/setns.c

File Facts

System
Linux kernel
Corpus path
tools/perf/util/setns.c
Extension
.c
Size
183 bytes
Lines
11
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

// SPDX-License-Identifier: LGPL-2.1

#include "namespaces.h"
#include <unistd.h>
#include <sys/syscall.h>

int setns(int fd, int nstype)
{
	return syscall(__NR_setns, fd, nstype);
}

Annotation

Implementation Notes