Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Function to handle write request* When idx = reset_cnts, reset all the counts.

Proto:static ssize_t lockevent_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const char __user *user_buf
size_tcount
loff_t *ppos
96  If s or device private pointer != LOCKEVENT_reset_cnts Then Return count
99  for_each_possible_cpu(cpu)
101  ptr = per_cpu_ptr(Per-cpu counts, cpu)
103  When i < # of write lock handoffs cycle WRITE_ONCE(ptr[i], 0)
106  Return count