函数逻辑报告

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

函数名称:pseudo_lock_minor_get - Obtain available minor number*@minor: Pointer to where new minor number will be stored* A bitmask is used to track available minor numbers. Here the next free* minor number is marked as unavailable and returned.

函数原型:static int pseudo_lock_minor_get(unsigned int *minor)

返回类型:int

参数:

类型参数名称
unsigned int *minor
117  first_bit等于find_first_bit( & pseudo_lock_minor_avail, MINORBITS)
119  如果first_bit恒等于MINORBITS则返回:负ENOSPC
122  __clear_bit - Clears a bit in memory*@nr: the bit to clear*@addr: the address to start counting from* Unlike clear_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation
123  minor等于first_bit
125  返回:0
调用者
名称描述
rdtgroup_pseudo_lock_createdtgroup_pseudo_lock_create - Create a pseudo-locked region*@rdtgrp: resource group to which pseudo-lock region belongs* Called when a resource group in the pseudo-locksetup mode receives a* valid schemata that should be pseudo-locked