Function report |
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 activity | Download SCCT | Chinese |
Name:prepend_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
Proto:static int prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct path * | path | |
const struct path * | root | |
char ** | buffer | |
int * | buflen |
82 | error = 0 |
83 | m_seq = 0 |
88 | restart_mnt : |
90 | seq = 0 |
92 | restart : |
95 | error = 0 |
98 | mnt = real_mount(vfsmnt) |
104 | parent = READ_ONCE(mnt_parent) |
106 | If dentry != root of the mounted tree Then |
119 | If is_mounted(vfsmnt) && Not is_anon_ns( containing namespace ) Then error = 1 |
121 | Else error = 2 |
123 | Break |
125 | parent = parent directory |
128 | If error Then Break |
135 | If need_seqretry( & rename_lock, seq) Then |
139 | done_seqretry( & rename_lock, seq) |
144 | m_seq = 1 |
145 | Go to restart_mnt |
150 | If --blen < 0 Then error = -ENAMETOOLONG |
152 | Else *--bptr = '/' |
157 | Return error |
Name | Describe |
---|---|
__d_path | __d_path - return the path of a dentry*@path: the dentry/vfsmount to report*@root: root vfsmnt/dentry*@buf: buffer to return value in*@buflen: buffer length* Convert a dentry into an ASCII path name |
d_absolute_path | |
path_with_deleted | same as __d_path but appends "(deleted)" for unlinked files. |
SYSCALL_DEFINE2 | NOTE! The user-level library version returns a* character pointer |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |