Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:COMPAT_SYSCALL_DEFINE3

Proto:COMPAT_SYSCALL_DEFINE3(io_submit, compat_aio_context_t, ctx_id, int, nr, compat_uptr_t __user *, iocbpp)

Type:

Parameter:Nothing

1953  ret = 0
1954  i = 0
1957  If Value for the false possibility is greater at compile time(nr < 0) Then Return -EINVAL
1960  ctx = lookup_ioctx(ctx_id)
1961  If Value for the false possibility is greater at compile time(!ctx) Then
1962  pr_debug("EINVAL: invalid context id\n")
1963  Return -EINVAL
1966  If nr > Size of ringbuffer, in units of struct io_event Then nr = Size of ringbuffer, in units of struct io_event
1969  If nr > Plugging is meant to work with larger batches of IOs. If we don't* have more than the below, then don't bother setting up a plug. Then blk_start_plug( & plug)
1971  When i < nr cycle
1975  ret = -EFAULT
1976  Break
1979  ret = io_submit_one(ctx, A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already., true)
1980  If ret Then Break
1983  If nr > Plugging is meant to work with larger batches of IOs. If we don't* have more than the below, then don't bother setting up a plug. Then blk_finish_plug( & plug)
1986  percpu_ref_put - decrement a percpu refcount*@ref: percpu_ref to put* Decrement the refcount, and if 0, call the release function (which was passed* to percpu_ref_init())* This function is safe to call as long as @ref is between init and exit.
1987  Return If i Then i Else ret