Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_mqueue_fs

Proto:static int __init init_mqueue_fs(void)

Type:int

Parameter:Nothing

1619  mqueue_inode_cachep = kmem_cache_create - Create a cache.*@name: A string which is used in /proc/slabinfo to identify this cache.*@size: The size of objects to be created in this cache.*@align: The required alignment for the objects.*@flags: SLAB flags
1622  If (mqueue_inode_cachep == NULL) Then Return -ENOMEM
1626  mq_sysctl_table = mq_register_sysctl_table()
1628  error = register_filesystem( & mqueue_fs_type)
1629  If error Then Go to out_sysctl
1632  Process spin lock initialization( & mq_lock)
1634  error = mq_init_ns( & The next 2 defines are here bc this is the only file* compiled when either CONFIG_SYSVIPC and CONFIG_POSIX_MQUEUE* and not CONFIG_IPC_NS.)
1635  If error Then Go to out_filesystem
1638  Return 0
1640  out_filesystem :
1641  unregister_filesystem( & mqueue_fs_type)
1642  out_sysctl :
1643  If mq_sysctl_table Then unregister a sysctl table hierarchy
1645  kmem_cache_destroy(mqueue_inode_cachep)
1646  Return error