函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static inline bool dst_hold_safe(struct dst_entry *dst)

返回类型:bool

参数:

类型参数名称
struct dst_entry *dst
297  返回:atomic_inc_not_zero - increment unless the number is zero*@v: pointer of type atomic_t* Atomically increments @v by 1, if @v is non-zero.* Returns true if the increment was done.
调用者
名称描述
skb_dst_force确保DST是引用计数