Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mmio_read

Proto:static ssize_t mmio_read(struct trace_iterator *iter, struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
struct trace_iterator *iter
struct file *filp
char __user *ubuf
size_tcnt
loff_t *ppos
137  hiter = private
138  s = The below is zeroed out in pipe_read
141  n = count_overruns(iter)
142  If n Then
144  race_seq_printf - sequence printing of trace information*@s: trace sequence descriptor*@fmt: printf format string* The tracer may use either sequence operations or its own* copy to user routines
145  If Not overrun_detected Then pr_warn("mmiotrace has lost events\n")
147  overrun_detected = true
148  Go to print_out
151  If Not hiter Then Return 0
154  mmio_print_pcidev(s, dev)
155  dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)
157  If Not dev Then
158  destroy_header_iter(hiter)
159  private = NULL
162  print_out :
163  ret = race_seq_to_user - copy the squence buffer to user space*@s: trace sequence descriptor*@ubuf: The userspace memory location to copy to*@cnt: The amount to copy* Copies the sequence buffer into the userspace memory pointed to* by @ubuf
164  Return If ret == -EBUSY Then 0 Else ret