函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:SYSCALL_DEFINE6

函数原型:SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, unsigned int, to_submit, unsigned int, min_complete, unsigned int, flags, const sigset_t __user *, sig, size_t, sigsz)

返回类型:

参数:

5153  ret等于负EBADF
5154  submitted等于0
5157  如果flags按位与_uring_enter(2) flags按位或IORING_ENTER_SQ_WAKEUP的值的反则返回:负EINVAL
5160  f等于fdget(fd)
5161  如果非file则返回:负EBADF
5164  ret等于负EOPNOTSUPP
5165  如果f_op不等于io_uring_fops则转到:out_fput
5168  ret等于负ENXIO
5169  ctx等于 needed for tty driver, and maybe others
5170  如果非percpu_ref_tryget - try to increment a percpu refcount*@ref: percpu_ref to try-get* Increment a percpu refcount unless its count already reached zero.* Returns %true on success; %false on failure.则转到:out_fput
5178  ret等于0
5179  如果flags按位与SQ poll thread
5180  如果非链表为空且不修改Returns true if there are no backlogged entries after the flush
5182  如果flags按位与IORING_ENTER_SQ_WAKEUPwake_up( & sqo_wait)
5184  submitted等于to_submit
5185  否则如果to_submit
5188  to_submit等于两数取小(to_submit, sq_entries)
5189  mutex_lock( & uring_lock)
5191  cur_mm等于sqo_mm
5192  submitted等于io_submit_sqes(ctx, to_submit, file, fd, & cur_mm, false)
5194  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
5196  如果submitted不等于to_submit则转到:out
5199  如果flags按位与_uring_enter(2) flags
5200  nr_events等于0
5202  min_complete等于两数取小(min_complete, cq_entries)
5204  如果flags按位与_context is polled
5206  否则
5211  out :
5212  percpu计数引用减
5213  out_fput :
5214  fdput(f)
5215  返回:如果submittedsubmitted否则ret