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:bitmap_parse_region

Proto:static const char *bitmap_parse_region(const char *str, struct region *r)

Type:char

Parameter:

TypeParameterName
const char *str
struct region *r
592  str = bitmap_getnum(str, & start)
593  If IS_ERR(str) Then Return str
596  If end_of_region( * str) Then Go to no_end
599  If str != '-' Then Return ERR_PTR( - EINVAL)
602  str = bitmap_getnum(str + 1, & end)
603  If IS_ERR(str) Then Return str
606  If end_of_region( * str) Then Go to no_pattern
609  If str != ':' Then Return ERR_PTR( - EINVAL)
612  str = bitmap_getnum(str + 1, & off)
613  If IS_ERR(str) Then Return str
616  If str != '/' Then Return ERR_PTR( - EINVAL)
619  Return bitmap_getnum(str + 1, & group_len)
621  no_end :
622  end = start
623  no_pattern :
624  off = end + 1
625  group_len = end + 1
627  Return If end_of_str( * str) Then NULL Else str
Caller
NameDescribe
bitmap_parselistmap_parselist - convert list format ASCII string to bitmap*@buf: read user string from this buffer; must be terminated* with a \0 or \n