Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:path_put is needed afterwards regardless of success or failure

Proto:static bool legitimize_path(struct nameidata *nd, struct path *path, unsigned seq)

Type:bool

Parameter:

TypeParameterName
struct nameidata *nd
struct path *path
unsignedseq
614  res = all under rcu_read_lock
615  If Value for the false possibility is greater at compile time(res) Then
616  If res > 0 Then mnt = NULL
618  dentry = NULL
619  Return false
621  If Value for the false possibility is greater at compile time(!lockref_get_not_dead - Increments count unless the ref is dead*@lockref: pointer to lockref structure* Return: 1 if count updated successfully or 0 if lockref was dead) Then
622  dentry = NULL
623  Return false
625  Return Not ad_seqcount_retry - end a seq-read critical section*@s: pointer to seqcount_t*@start: count, from read_seqcount_begin* Returns: 1 if retry is required, else 0* read_seqcount_retry closes a read critical section of the given seqcount
Caller
NameDescribe
legitimize_links
legitimize_root
unlazy_walklazy_walk - try to switch to ref-walk mode
pick_link