函数逻辑报告 |
Source Code:security\selinux\netif.c |
Create Date:2022-07-27 20:39:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:static inline unsigned int sel_netif_hashfn(const struct net *ns, int ifindex)
返回类型:unsigned int
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct net * | ns | |
int | ifindex |
55 | 返回:ns加ifindex按位与SEL_NETIF_HASH_SIZE减1 |
名称 | 描述 |
---|---|
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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |