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:13:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static int pseudo_lock_minor_get(unsigned int *minor)

Type:int

Parameter:

TypeParameterName
unsigned int *minor
117  first_bit = find the first set bit in a memory region( & pseudo_lock_minor_avail, MINORBITS)
119  If first_bit == MINORBITS Then Return -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  Return 0
Caller
NameDescribe
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