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:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fib_lookup

Proto:static inline int fib_lookup(struct net *net, const struct flowi4 *flp, struct fib_result *res, unsigned int flags)

Type:int

Parameter:

TypeParameterName
struct net *net
const struct flowi4 *flp
struct fib_result *res
unsigned intflags
298  err = -ENETUNREACH
300  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
302  tb = fib_get_table(net, RT_TABLE_MAIN)
303  If tb Then err = fib_table_lookup(tb, flp, res, flags | FIB_LOOKUP_NOREF)
306  If err == -EAGAIN Then err = -ENETUNREACH
309  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
311  Return err