Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:COMPAT_SYSCALL_DEFINE4

Proto:COMPAT_SYSCALL_DEFINE4(vmsplice, int, fd, const struct compat_iovec __user *, iov32, unsigned int, nr_segs, unsigned int, flags)

Type:

Parameter:Nothing

1405  iov = iovstack
1411  f = fdget(fd)
1412  error = vmsplice_type(f, & type)
1413  If error Then Return error
1416  error = compat_import_iovec(type, iov32, nr_segs, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(iovstack), & iov, & iter)
1418  If error >= 0 Then
1419  error = Note that vmsplice only really supports true splicing _from_ user memory* to a pipe, not the other way around. Splicing from user memory is a simple* operation that can be supported without any funky alignment restrictions* or nasty vm tricks
1420  kfree(iov)
1422  fdput(f)
1423  Return error