Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dentry_path

Proto:char *dentry_path(struct dentry *dentry, char *buf, int buflen)

Type:char

Parameter:

TypeParameterName
struct dentry *dentry
char *buf
intbuflen
378  char * p = NULL
381  If d_unlinked(dentry) Then
382  p = buf + buflen
383  If prepend( & p, & buflen, "//deleted", 10) != 0 Then Go to Elong
385  buflen++
387  retval = Write full pathname from the root of the filesystem into the buffer.
388  If Not IS_ERR(retval) && p Then p = '/'
390  Return retval
391  Elong :
392  Return ERR_PTR( - ENAMETOOLONG)