Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\timings.c Create Date:2022-07-28 10:12:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:irq_timings_alloc

Proto:int irq_timings_alloc(int irq)

Type:int

Parameter:

TypeParameterName
intirq
602  __percpu * s
611  s = dr_find() - Return pointer for given ID
612  If s Then Return 0
615  s = alloc_percpu( * s)
616  If Not s Then Return -ENOMEM
619  dr_preload - preload for idr_alloc()*@gfp_mask: allocation mask to use for preloading* Preallocate memory to use for the next call to idr_alloc(). This function* returns with preemption disabled. It will be enabled by idr_preload_end().
620  id = dr_alloc() - Allocate an ID.*@idr: IDR handle.*@ptr: Pointer to be associated with the new ID.*@start: The minimum ID (inclusive).*@end: The maximum ID (exclusive).*@gfp: Memory allocation flags.
621  dr_preload_end - end preload section started with idr_preload()* Each idr_preload() should be matched with an invocation of this* function. See idr_preload() for details.
623  If id < 0 Then
624  free previously allocated percpu memory
625  Return id
628  Return 0