Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:eventpoll_init

Proto:static int __init eventpoll_init(void)

Type:int

Parameter:Nothing

2338  si_meminfo( & si)
2342  Maximum number of epoll watched descriptors, per user = ( ( Total usable main memory size - Total high memory size ) / 25 << PAGE_SHIFT determines the page size ) / EP_ITEM_COST
2344  BUG_ON(Maximum number of epoll watched descriptors, per user < 0)
2350  Initialize the poll safe wake up structure
2356  BUILD_BUG_ON - break compile if a condition is true( size of * <= 8 && sizeof(structepitem) > 128)
2359  Slab cache used to allocate "struct epitem" = 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
2363  Slab cache used to allocate "struct eppoll_entry" = 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
2366  Return 0