函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_destroy_usecnt - Called during destruction to check the usecnt*@usecnt: The usecnt atomic*@why: remove reason*@uobj: The uobject that is destroyed* Non-zero usecnts will block destruction unless destruction was triggered by* a ucontext cleanup.

函数原型:static inline int ib_destroy_usecnt(atomic_t *usecnt, enum rdma_remove_reason why, struct ib_uobject *uobj)

返回类型:int

参数:

类型参数名称
atomic_t *usecnt
enum rdma_remove_reasonwhy
struct ib_uobject *uobj
2923  如果atomic_read(usecnt)且_is_destroy_retryable - Check whether the uobject destruction* is retryable则返回:负EBUSY
2925  返回:0