Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:inet_lookup

Proto:static inline struct sock *inet_lookup(struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const __be32 saddr, const __be16 sport, const __be32 daddr, const __be16 dport, const int dif)

Type:struct sock

Parameter:

TypeParameterName
struct net *net
struct inet_hashinfo *hashinfo
struct sk_buff *skb
intdoff
const __be32saddr
const __be16sport
const __be32daddr
const __be16dport
const intdif
366  sk = __inet_lookup(net, hashinfo, skb, doff, saddr, sport, daddr, dport, dif, 0, & refcounted)
369  If sk && Not refcounted && Not _inc_not_zero - increment a refcount unless it is 0*@r: the refcount to increment* Similar to atomic_inc_not_zero(), but will saturate at REFCOUNT_SATURATED* and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the Then sk = NULL
371  Return sk