Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\sock.h Create Date:2022-07-28 06:09:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:SOCKET_I

Proto:static inline struct socket *SOCKET_I(struct inode *inode)

Type:struct socket

Parameter:

TypeParameterName
struct inode *inode
1369  Return & ({
1369  __mptr = inode
1369  Do
1369  When 0 cycle
1369  __mptr - __builtin_offsetof(structsocket_alloc, vfs_inode)
1369  })->socket
Caller
NameDescribe
smack_inode_getsecuritysmack_inode_getsecurity - get smack xattrs*@inode: the object*@name: attribute name*@buffer: where to put the result*@alloc: duplicate memory* Returns the size of the attribute or an error code
smack_file_receivesmack_file_receive - Smack file receive check*@file: the object* Returns 0 if current has access, error code otherwise
smack_inode_setsecuritysmack_inode_setsecurity - set smack xattrs*@inode: the object*@name: attribute name*@value: attribute value*@size: size of the attribute*@flags: unused* Sets the named attribute in the appropriate blob* Returns 0 on success, or an error code