函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:SYSCALL_DEFINE4

函数原型:SYSCALL_DEFINE4(io_uring_register, unsigned int, fd, unsigned int, opcode, void __user *, arg, unsigned int, nr_args)

返回类型:

参数:

5537  ret等于负EBADF
5540  f等于fdget(fd)
5541  如果非file则返回:负EBADF
5544  ret等于负EOPNOTSUPP
5545  如果f_op不等于io_uring_fops则转到:out_fput
5548  ctx等于 needed for tty driver, and maybe others
5550  mutex_lock( & uring_lock)
5551  ret等于__io_uring_register(ctx, opcode, arg, nr_args)
5552  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.
5553  _uring_register - called after a buffer/file/eventfd was succesfully* registered for a ring*@ctx: pointer to a ring context structure*@opcode: describes which operation to perform*@nr_user_files: number of registered files*@nr_user_bufs: number of
5555  out_fput :
5556  fdput(f)
5557  返回:ret