Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\aio.c Create Date:2022-07-28 20:21:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kiocb_set_cancel_fn

Proto:void kiocb_set_cancel_fn(struct kiocb *iocb, kiocb_cancel_fn *cancel)

Type:void

Parameter:

TypeParameterName
struct kiocb *iocb
kiocb_cancel_fn *cancel
563  req = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(iocb, structaio_kiocb, rw)
564  ctx = ki_ctx
567  If WARN_ON_ONCE(!list_empty - tests whether a list is empty*@head: the list to test.) Then Return
570  spin_lock_irqsave( & ctx_lock, flags)
571  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
572  ki_cancel = cancel
573  spin_unlock_irqrestore( & ctx_lock, flags)