Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
const struct net * | ns | |
int | ifindex |
55 | Return ns + ifindex & SEL_NETIF_HASH_SIZE - 1 |
Name | Describe |
---|---|
sel_netif_find | sel_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_insert | sel_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. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |