Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_grab_files

Proto:static int io_grab_files(struct io_kiocb *req)

Type:int

Parameter:

TypeParameterName
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  If Check whether the specified fd has an open file.(ring_fd) == ring_file Then
3447  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
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  Return ret
Caller
NameDescribe
__io_queue_sqe