函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\ip_fib.h Create Date:2022-07-27 07:38:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:fib_get_table

函数原型:static inline struct fib_table *fib_get_table(struct net *net, u32 id)

返回类型:struct fib_table

参数:

类型参数名称
struct net *net
u32id
280  ptr等于如果id恒等于RT_TABLE_LOCALfib_table_hash[TABLE_LOCAL_INDEX]否则fib_table_hash[TABLE_MAIN_INDEX]
284  tb_hlist等于cu_dereference_rtnl - rcu_dereference with debug checking*@p: The pointer to read, prior to dereferencing* Do an rcu_dereference(p), but check caller either holds rcu_read_lock()* or RTNL. Note : Please prefer rtnl_dereference() or rcu_dereference()(urn the first or the next element in an RCU protected hlist(ptr))
286  返回:hlist_entry(tb_hlist, structfib_table, tb_hlist)
调用者
名称描述
fib_new_table
fib_lookup