函数逻辑报告

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:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pseudo_lock_dev_open

函数原型:static int pseudo_lock_dev_open(struct inode *inode, struct file *filp)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *filp
1426  mutex_lock( & Mutex to protect rdtgroup access. )
1428  rdtgrp等于gion_find_by_minor - Locate a pseudo-lock region by inode minor number*@minor: The minor number of the device representing pseudo-locked region* When the character device is accessed we need to determine which* pseudo-locked region it belongs to
1429  如果非rdtgrp
1430  mutex_unlock( & Mutex to protect rdtgroup access. )
1431  返回:负ENODEV
1434  needed for tty driver, and maybe others 等于rdtgrp
1435  atomic_inc( & waitcount)
1437  f_mode与等于le is seekable 按位或le can be accessed using pread 按位或le can be accessed using pwrite 的值的反
1439  mutex_unlock( & Mutex to protect rdtgroup access. )
1441  返回:0