Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pick_link

Proto:static int pick_link(struct nameidata *nd, struct path *link, struct inode *inode, unsigned seq)

Type:int

Parameter:

TypeParameterName
struct nameidata *nd
struct path *link
struct inode *inode
unsignedseq
1717  If Value for the false possibility is greater at compile time(total_link_count++ >= MAXSYMLINKS) Then
1718  path_to_nameidata(link, nd)
1719  Return -ELOOP
1721  If Not (flags & RCU pathwalk mode; semi-internal ) Then
1722  If mnt == mnt Then mntget(mnt)
1725  error = nd_alloc_stack(nd)
1726  If Value for the false possibility is greater at compile time(error) Then
1727  If error == -ECHILD Then
1738  If error Then
1740  Return error
1744  last = stack + depth++
1745  link = link
1746  clear_delayed_call( & done)
1747  link_inode = inode
1748  seq = seq
1749  Return 1
Caller
NameDescribe
step_intoDo we need to follow links? We _really_ want to be able* to do this check without having to look at inode->i_op,* so we keep a cache of "no, this doesn't need follow_link"* for the common case.