函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\aio.c Create Date:2022-07-29 10:53:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kiocb_set_cancel_fn

函数原型:void kiocb_set_cancel_fn(struct kiocb *iocb, kiocb_cancel_fn *cancel)

返回类型:void

参数:

类型参数名称
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  如果WARN_ON_ONCE(!链表为空)则返回
570  spin_lock_irqsave( & ctx_lock, flags)
571  添加链表项
572  ki_cancel等于cancel
573  spin_unlock_irqrestore( & ctx_lock, flags)