函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static long io_uring_setup(unsigned int entries, struct io_uring_params __user *params)

返回类型:long

参数:

类型参数名称
unsigned intentries
struct io_uring_params __user *params
5426  如果copy_from_user( & p, params, p的长度)则返回:负EFAULT
5428 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(resv)循环
5429  如果resv[i]则返回:负EINVAL
5433  如果flags按位与_context is polled 按位或SQ poll thread 按位或sq_thread_cpu is valid 按位或app defines CQ size 的值的反则返回:负EINVAL
5437  ret等于io_uring_create(entries, & p)
5438  如果ret小于0则返回:ret
5441  如果copy_to_user(params, & p, p的长度)则返回:负EFAULT
5444  返回:ret
调用者
名称描述
SYSCALL_DEFINE2