函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c Create Date:2022-07-27 09:14:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pseudo_lock_measure_trigger

函数原型:static ssize_t pseudo_lock_measure_trigger(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
const char __user *user_buf
size_tcount
loff_t *ppos
1222  rdtgrp等于 needed for tty driver, and maybe others
1228  buf_size等于两数取小(count, (buf的长度 - 1))
1229  如果copy_from_user(buf, user_buf, buf_size)则返回:负EFAULT
1232  buf[buf_size]等于'\0'
1233  ret等于kstrtoint - convert a string to an int*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign or a minus sign.
1234  如果ret恒等于0则
1235  如果sel不等于1且sel不等于2且sel不等于3则返回:负EINVAL
1237  ret等于debugfs_file_get(dentry)
1238  如果ret则返回:ret
1240  ret等于pseudo_lock_measure_cycles - Trigger latency measure to pseudo-locked region* The measurement of latency to access a pseudo-locked region should be* done from a cpu that is associated with that pseudo-locked region
1241  如果ret恒等于0则ret等于count
1243  debugfs_file_put(dentry)
1246  返回:ret