Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\nsfs.c Create Date:2022-07-28 20:12:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ns_get_name

Proto:int ns_get_name(char *buf, size_t size, struct task_struct *task, const struct proc_ns_operations *ns_ops)

Type:int

Parameter:

TypeParameterName
char *buf
size_tsize
struct task_struct *task
const struct proc_ns_operations *ns_ops
222  res = -ENOENT
224  ns = get(task)
225  If ns Then
226  name = If real_ns_name Else name
227  res = snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
228  put(ns)
230  Return res