Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Sets up an aio uring context, and returns the fd. Applications asks for a* ring size, we return the actual sq/cq ring sizes (among other things) in the* params structure passed in.

Proto:static long io_uring_setup(unsigned int entries, struct io_uring_params __user *params)

Type:long

Parameter:

TypeParameterName
unsigned intentries
struct io_uring_params __user *params
5426  If copy_from_user( & p, params, size of p ) Then Return -EFAULT
5428  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(resv) cycle
5429  If resv[i] Then Return -EINVAL
5433  If flags & ~( _context is polled | SQ poll thread | sq_thread_cpu is valid | app defines CQ size ) Then Return -EINVAL
5437  ret = io_uring_create(entries, & p)
5438  If ret < 0 Then Return ret
5441  If copy_to_user(params, & p, size of p ) Then Return -EFAULT
5444  Return ret
Caller
NameDescribe
SYSCALL_DEFINE2