Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:seq_buf_path - copy a path into the sequence buffer*@s: seq_buf descriptor*@path: path to write into the sequence buffer

Proto:int seq_buf_path(struct seq_buf *s, const struct path *path, const char *esc)

Type:int

Parameter:

TypeParameterName
struct seq_buf *s
const struct path *path
const char *esc
268  size = seq_buf_get_buf - get buffer to write arbitrary data to*@s: the seq_buf handle*@bufp: the beginning of the buffer is stored here* Return the number of bytes available in the buffer, or zero if* there's no space.
269  res = -1
271  WARN_ON(size == 0)
273  If size Then
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  If Not IS_ERR(p) Then
276  end = mangle_path(buf, p, esc)
277  If end Then res = end - buf
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  Return res