函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\dmapool.c Create Date:2022-07-27 16:54:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:show_pools

函数原型:static ssize_t show_pools(struct device *dev, struct device_attribute *attr, char *buf)

返回类型:ssize_t

参数:

类型参数名称
struct device *dev
struct device_attribute *attr
char *buf
73  next等于buf
74  size等于PAGE_SIZE
76  temp等于格式化输出字符串
77  size减等于temp
78  next加等于temp
80  mutex_lock( & pools_lock)
82  pages等于0
83  blocks等于0
85  spin_lock_irq( & lock)
87  pages自加
88  blocks加等于in_use
90  spin_unlock_irq( & lock)
93  temp等于格式化输出字符串
97  size减等于temp
98  next加等于temp
100  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
102  返回:PAGE_SIZEsize