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

Proto:static inline bool dst_hold_safe(struct dst_entry *dst)

Type:bool

Parameter:

TypeParameterName
struct dst_entry *dst
297  Return 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.