Contributors: 7
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Karolina Drobnik |
83 |
76.15% |
1 |
12.50% |
Wei Yang |
12 |
11.01% |
2 |
25.00% |
Alexander (Sasha) Levin |
5 |
4.59% |
1 |
12.50% |
Liam R. Howlett |
3 |
2.75% |
1 |
12.50% |
Sasha Levin |
3 |
2.75% |
1 |
12.50% |
Matthew Wilcox |
2 |
1.83% |
1 |
12.50% |
Greg Kroah-Hartman |
1 |
0.92% |
1 |
12.50% |
Total |
109 |
|
8 |
|
12345678910111213141516171819202122232425262728293031323334353637383940414243
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _TOOLS_LINUX_INIT_H_
#define _TOOLS_LINUX_INIT_H_
#include <linux/compiler.h>
#ifndef __init
# define __init
#endif
#ifndef __exit
# define __exit
#endif
#define __section(section) __attribute__((__section__(section)))
#define __initconst
#define __meminit
#define __meminitdata
#define __refdata
#define __initdata
struct obs_kernel_param {
const char *str;
int (*setup_func)(char *st);
int early;
};
#define __setup_param(str, unique_id, fn, early) \
static const char __setup_str_##unique_id[] __initconst \
__aligned(1) = str; \
static struct obs_kernel_param __setup_##unique_id \
__used __section(".init.setup") \
__aligned(__alignof__(struct obs_kernel_param)) = \
{ __setup_str_##unique_id, fn, early }
#define __setup(str, fn) \
__setup_param(str, fn, fn, 0)
#define early_param(str, fn) \
__setup_param(str, fn, fn, 1)
#endif /* _TOOLS_LINUX_INIT_H_ */