Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\iocontext.h Create Date:2022-07-28 05:42:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_io_context_active - get active reference on ioc*@ioc: ioc of interest* Only iocs with active reference can issue new IOs. This function* acquires an active reference on @ioc. The caller must already have an* active reference on @ioc.

Proto:static inline void get_io_context_active(struct io_context *ioc)

Type:void

Parameter:

TypeParameterName
struct io_context *ioc
131  WARN_ON_ONCE(atomic_long_read( & refcount) <= 0)
132  WARN_ON_ONCE(atomic_read( & active_ref) <= 0)
133  atomic_long_inc( & refcount)
134  atomic_inc( & active_ref)