Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c Create Date:2022-07-28 08:14:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pseudo_lock_dev_open

Proto:static int pseudo_lock_dev_open(struct inode *inode, struct file *filp)

Type:int

Parameter:

TypeParameterName
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  If Not rdtgrp Then
1430  mutex_unlock( & Mutex to protect rdtgroup access. )
1431  Return -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  Return 0