Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\ip_fib.h Create Date:2022-07-28 06:40:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fib_get_table

Proto:static inline struct fib_table *fib_get_table(struct net *net, u32 id)

Type:struct fib_table

Parameter:

TypeParameterName
struct net *net
u32id
280  ptr = If id == RT_TABLE_LOCAL Then fib_table_hash[TABLE_LOCAL_INDEX] Else 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  Return hlist_entry(tb_hlist, structfib_table, tb_hlist)