Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:path_setxattr

Proto:static int path_setxattr(const char __user *pathname, const char __user *name, const void __user *value, size_t size, int flags, unsigned int lookup_flags)

Type:int

Parameter:

TypeParameterName
const char __user *pathname
const char __user *name
const void __user *value
size_tsize
intflags
unsigned intlookup_flags
464  retry :
465  error = user_path_at(Special value used to indicateopenat should use the currentworking directory. , pathname, lookup_flags, & path)
466  If error Then Return error
468  error = mnt_want_write - get write access to a mount*@m: the mount on which to take a write* This tells the low-level filesystem that a write is about to be performed to* it, and makes sure that writes are allowed (mount is read-write, filesystem
469  If Not error Then
470  error = Extended attribute SET operations
471  mnt_drop_write - give up write access to a mount*@mnt: the mount on which to give up write access* Tells the low-level filesystem that we are done performing writes to it and* also allows filesystem to be frozen again. Must be matched with
473  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
474  If ry_estale - determine whether the caller should retry an operation*@error: the error that would currently be returned*@flags: flags being used for next lookup attempt* Check to see if the error code was -ESTALE, and then determine whether Then
475  lookup_flags |= ll ->d_revalidate() to trust no cache
476  Go to retry
478  Return error
Caller
NameDescribe
SYSCALL_DEFINE5
SYSCALL_DEFINE5