函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:map_parselist - convert list format ASCII string to bitmap*@buf: read user string from this buffer; must be terminated* with a \0 or \n

函数原型:int bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits)

返回类型:int

参数:

类型参数名称
const char *buf
unsigned long *maskp
intnmaskbits
659  bitmap_zero(maskp, nmaskbits)
661 buf循环
662  buf等于The format allows commas and whitespases at the beginning* of the region.
663  如果(buf == NULL)则返回:0
666  buf等于bitmap_parse_region(buf, & r)
667  如果是错误则返回:错误
670  ret等于bitmap_check_region( & r)
671  如果ret则返回:ret
674  ret等于bitmap_set_region( & r, maskp, nmaskbits)
675  如果ret则返回:ret
679  返回:0
调用者
名称描述
bitmap_parselist_usermap_parselist_user()*@ubuf: pointer to user buffer containing string.*@ulen: buffer size in bytes. If string is smaller than this* then it must be terminated with a \0.*@maskp: pointer to bitmap array that will contain result.
__test_bitmap_parselist
cpulist_parse从用户空间中提取CPU信息
__nodelist_parse