Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sel_netport_hashfn - Hashing function for the port table*@pnum: port number* Description:* This is the hashing function for the port table, it returns the bucket* number for the given port.

Proto:static unsigned int sel_netport_hashfn(u16 pnum)

Type:unsigned int

Parameter:

TypeParameterName
u16pnum
71  Return pnum & SEL_NETPORT_HASH_SIZE - 1
Caller
NameDescribe
sel_netport_findsel_netport_find - Search for a port record*@protocol: protocol*@port: pnum* Description:* Search the network port table and return the matching record. If an entry* can not be found in the table return NULL.
sel_netport_insertsel_netport_insert - Insert a new port into the table*@port: the new port record* Description:* Add a new port record to the network address hash table.