Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\bitmap.c Create Date:2022-07-28 06:20:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:int bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits)

Type:int

Parameter:

TypeParameterName
const char *buf
unsigned long *maskp
intnmaskbits
659  bitmap_zero(maskp, nmaskbits)
661  When buf cycle
662  buf = The format allows commas and whitespases at the beginning* of the region.
663  If (buf == NULL) Then Return 0
666  buf = bitmap_parse_region(buf, & r)
667  If IS_ERR(buf) Then Return PTR_ERR(buf)
670  ret = bitmap_check_region( & r)
671  If ret Then Return ret
674  ret = bitmap_set_region( & r, maskp, nmaskbits)
675  If ret Then Return ret
679  Return 0
Caller
NameDescribe
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_parsepulist_parse - extract a cpumask from a user string of ranges*@buf: the buffer to extract from*@dstp: the cpumask to set.* Returns -errno, or 0 for success.
__nodelist_parse