函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\seq_buf.c Create Date:2022-07-27 07:12:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:seq_buf_path - copy a path into the sequence buffer*@s: seq_buf descriptor*@path: path to write into the sequence buffer

函数原型:int seq_buf_path(struct seq_buf *s, const struct path *path, const char *esc)

返回类型:int

参数:

类型参数名称
struct seq_buf *s
const struct path *path
const char *esc
268  size等于获取任意数据的缓冲区
269  res等于负1
271  WARN_ON(size == 0)
273  如果size
274  p等于d_path - return the path of a dentry*@path: path to report*@buf: buffer to return value in*@buflen: buffer length* Convert a dentry into an ASCII path name
275  如果非是错误
276  end等于mangle_path(buf, p, esc)
277  如果endres等于endbuf
281  seq_buf_commit - commit data to the buffer*@s: the seq_buf handle*@num: the number of bytes to commit* Commit @num bytes of data written to a buffer previously acquired* by seq_buf_get. To signal an error condition, or that the data
283  返回:res
调用者
名称描述
trace_seq_pathrace_seq_path - copy a path into the sequence buffer*@s: trace sequence descriptor*@path: path to write into the sequence buffer