Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static inline bool skb_dst_force(struct sk_buff *skb)

Type:bool

Parameter:

TypeParameterName
struct sk_buff *skb
309  If skb_dst_is_noref - Test if skb dst isn't refcounted*@skb: buffer Then
310  dst = skb_dst - returns skb dst_entry*@skb: buffer* Returns skb dst_entry, regardless of reference taken or not.
312  WARN_ON(!rcu_read_lock_held())
313  If Not dst_hold_safe - Take a reference on a dst if possible*@dst: pointer to dst entry* This helper returns false if it could not safely* take a reference on a dst. Then dst = NULL
316  _skb_refdst = dst
319  Return _skb_refdst != 0UL