Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pipe_ioctl

Proto:static long pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)

Type:long

Parameter:

TypeParameterName
struct file *filp
unsigned intcmd
unsigned longarg
613  pipe = needed for tty driver, and maybe others
617  Case cmd == FIONREAD
618  __pipe_lock(pipe)
619  count = 0
620  head = head
621  tail = tail
622  mask = ring_size - 1
624  When tail != head cycle
625  count += len
626  tail++
628  __pipe_unlock(pipe)
630  Return Write a simple value into user space(count, (int__user * )arg)
631  Default
632  Return -No ioctl command