Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:prepend_name - prepend a pathname in front of current buffer pointer*@buffer: buffer pointer*@buflen: allocated length of the buffer*@name: name string and length qstr structure* With RCU path tracing, it may race with d_move()

Proto:static int prepend_name(char **buffer, int *buflen, const struct qstr *name)

Type:int

Parameter:

TypeParameterName
char **buffer
int *buflen
const struct qstr *name
40  dname = smp_load_acquire( & name)
41  dlen = READ_ONCE(len)
44  buflen -= dlen + 1
45  If buflen < 0 Then Return -ENAMETOOLONG
47  p = buffer -= dlen + 1
48  p++ = '/'
49  When dlen-- cycle
50  c = dname++
51  If Not c Then Break
53  p++ = c
55  Return 0
Caller
NameDescribe
prepend_pathprepend_path - Prepend path string to a buffer*@path: the dentry/vfsmount to report*@root: root vfsmnt/dentry*@buffer: pointer to the end of the buffer*@buflen: pointer to buffer length* The function will first try to write out the pathname without taking
__dentry_pathWrite full pathname from the root of the filesystem into the buffer.