Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ip_route_input

Proto:static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, u8 tos, struct net_device *devin)

Type:int

Parameter:

TypeParameterName
struct sk_buff *skb
__be32dst
__be32src
u8tos
struct net_device *devin
197  _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
198  err = ip_route_input_noref(skb, dst, src, tos, devin)
199  If Not err Then
200  skb_dst_force - makes sure skb dst is refcounted*@skb: buffer* If dst is not yet refcounted and not destroyed, grab a ref on it.* Returns true if dst is refcounted.
201  If Not skb_dst - returns skb dst_entry*@skb: buffer* Returns skb dst_entry, regardless of reference taken or not. Then err = -EINVAL
204  _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()
206  Return err