Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\mqueue.c Create Date:2022-07-28 16:51:19
Last Modify:2020-03-17 23:00:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:SYSCALL_DEFINE1

Proto:SYSCALL_DEFINE1(mq_unlink, const char __user *, u_name)

Type:

Parameter:Nothing

862  struct inode * inode = NULL
863  ipc_ns = ipc_ns
864  mnt = mq_mnt
866  name = getname(u_name)
867  If IS_ERR(name) Then Return PTR_ERR(name)
870  audit_inode_parent_hidden(name, root of the mounted tree )
871  err = mnt_want_write(mnt)
872  If err Then Go to out_name
874  inode_lock_nested(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them., I_MUTEX_PARENT)
875  dentry = lookup_one_len( pointer to actual string , root of the mounted tree , strlen - Find the length of a string*@s: The string to be sized)
877  If IS_ERR(dentry) Then
878  err = PTR_ERR(dentry)
879  Go to out_unlock
882  inode = d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.
883  If Not inode Then
884  err = -ENOENT
885  Else
886  ihold(inode)
887  err = vfs_unlink(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them., dentry, NULL)
889  dput(dentry)
891  out_unlock :
892  inode_unlock(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.)
893  If inode Then put an inode
895  mnt_drop_write(mnt)
896  out_name :
897  putname(name)
899  Return err