Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:SYSCALL_DEFINE4

Proto:SYSCALL_DEFINE4(io_uring_register, unsigned int, fd, unsigned int, opcode, void __user *, arg, unsigned int, nr_args)

Type:

Parameter:Nothing

5537  ret = -EBADF
5540  f = fdget(fd)
5541  If Not file Then Return -EBADF
5544  ret = -EOPNOTSUPP
5545  If f_op != io_uring_fops Then Go to 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  Return ret