函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:io_grab_files

函数原型:static int io_grab_files(struct io_kiocb *req)

返回类型:int

参数:

类型参数名称
struct io_kiocb *req
3435  ret等于负EBADF
3436  ctx等于ctx
3438  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
3439  spin_lock_irq( & inflight_lock)
3446  如果Check whether the specified fd has an open file.(ring_fd)恒等于ring_file
3447  添加链表项
3448  flags或等于 inflight list
3449  files等于files
3450  ret等于0
3452  spin_unlock_irq( & inflight_lock)
3453  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
3455  返回:ret
调用者
名称描述
__io_queue_sqe