Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sel_netif_hashfn - Hashing function for the interface table*@ns: the network namespace*@ifindex: the network interface* Description:* This is the hashing function for the network interface table, it returns the* bucket number for the given interface.

Proto:static inline unsigned int sel_netif_hashfn(const struct net *ns, int ifindex)

Type:unsigned int

Parameter:

TypeParameterName
const struct net *ns
intifindex
55  Return ns + ifindex & SEL_NETIF_HASH_SIZE - 1
Caller
NameDescribe
sel_netif_findsel_netif_find - Search for an interface record*@ns: the network namespace*@ifindex: the network interface* Description:* Search the network interface table and return the record matching @ifindex.* If an entry can not be found in the table return NULL.
sel_netif_insertsel_netif_insert - Insert a new interface into the table*@netif: the new interface record* Description:* Add a new interface record to the network interface hash table. Returns* zero on success, negative values on failure.