函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\nsfs.c Create Date:2022-07-29 10:43:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ns_get_name

函数原型:int ns_get_name(char *buf, size_t size, struct task_struct *task, const struct proc_ns_operations *ns_ops)

返回类型:int

参数:

类型参数名称
char *buf
size_tsize
struct task_struct *task
const struct proc_ns_operations *ns_ops
222  res等于负ENOENT
224  ns等于get(task)
225  如果ns
226  name等于如果real_ns_name否则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  返回:res