1GET_OPTION(9) Basic Kernel Library Functions GET_OPTION(9)
2
3
4
6 get_option - Parse integer from an option string
7
9 int get_option(char ** str, int * pint);
10
12 str
13 option string
14
15 pint
16 (output) integer value parsed from str
17
19 Read an int from an option string; if available accept a subsequent
20 comma as well.
21
23 0 - no int in string 1 - int found, no subsequent comma 2 - int found
24 including a subsequent comma 3 - hyphen found to denote a range
25
27Kernel Hackers Manual 3.10 June 2019 GET_OPTION(9)