Function report |
Source Code:lib\vsprintf.c |
Create Date:2022-07-28 06:12:08 |
| Last Modify:2022-05-21 09:47:42 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:resource_string
Proto:static __attribute__((__noinline__)) char *resource_string(char *buf, char *end, struct resource *res, struct printf_spec spec, const char *fmt)
Type:char
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | buf | |
| char * | end | |
| struct resource * | res | |
| struct printf_spec | spec | |
| const char * | fmt |
| 1012 | static const struct printf_spec io_spec = { number base, 8, 10 or 16 only = 16, width of output field = IO_RSRC_PRINTK_SIZE, # of digits/chars = - 1, flags to number() = prefix hex with "0x", octal with "0" | use lowercase in hex (must be 32 == 0x20) | pad with zero, must be 16 == '0' - ' ' , } |
| 1018 | static const struct printf_spec mem_spec = { number base, 8, 10 or 16 only = 16, width of output field = MEM_RSRC_PRINTK_SIZE, # of digits/chars = - 1, flags to number() = prefix hex with "0x", octal with "0" | use lowercase in hex (must be 32 == 0x20) | pad with zero, must be 16 == '0' - ' ' , } |
| 1024 | static const struct printf_spec bus_spec = { number base, 8, 10 or 16 only = 16, width of output field = 2, # of digits/chars = - 1, flags to number() = use lowercase in hex (must be 32 == 0x20) | pad with zero, must be 16 == '0' - ' ' , } |
| 1030 | static const struct printf_spec str_spec = { width of output field = - 1, # of digits/chars = 10, flags to number() = left justified , } |
| 1052 | p++ = '[' |
| 1053 | If flags & PCI/ISA I/O ports Then |
| 1056 | Else if flags & IORESOURCE_MEM Then |
| 1059 | Else if flags & IORESOURCE_IRQ Then |
| 1061 | specp = default_dec_spec |
| 1062 | Else if flags & IORESOURCE_DMA Then |
| 1064 | specp = default_dec_spec |
| 1065 | Else if flags & IORESOURCE_BUS Then |
| 1068 | Else |
| 1073 | If decode && flags & No address assigned yet Then |
| 1076 | Else |
| 1083 | If decode Then |
| 1084 | If flags & IORESOURCE_MEM_64 Then p = Handle string from a well known address. |
| 1086 | If flags & No side effects Then p = Handle string from a well known address. |
| 1088 | If flags & rwarded by bridge Then p = Handle string from a well known address. |
| 1090 | If flags & IORESOURCE_DISABLED Then p = Handle string from a well known address. |
| 1092 | Else |
| 1096 | p++ = ']' |
| 1097 | p = '\0' |
| 1099 | Return Handle string from a well known address. |
| Name | Describe |
|---|---|
| pointer | Show a '%p' thing. A kernel extension is that the '%p' is followed* by an extra set of alphanumeric characters that are extended format* specifiers.* Please update scripts/checkpatch.pl when adding/removing conversion* characters |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |