xref: /kernel/linux/linux-5.10/tools/perf/util/setns.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/perf/util/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: LGPL-2.1
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci#include "namespaces.h"
48c2ecf20Sopenharmony_ci#include <unistd.h>
58c2ecf20Sopenharmony_ci#include <sys/syscall.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciint setns(int fd, int nstype)
88c2ecf20Sopenharmony_ci{
98c2ecf20Sopenharmony_ci	return syscall(__NR_setns, fd, nstype);
108c2ecf20Sopenharmony_ci}
11

Indexes created Thu Nov 07 10:32:03 CST 2024