函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:inet_lookup

函数原型: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)

返回类型:struct sock

参数:

类型参数名称
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  如果sk且非refcounted且非_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 thesk = NULL
371  返回:sk