Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/kernel.h
Show First 20 Lines • Show All 394 Lines • ▼ Show 20 Lines | #define TUNABLE_STR(path, var, size) \ | ||||
}; \ | }; \ | ||||
SYSINIT(__CONCAT(__Tunable_init_, __LINE__), \ | SYSINIT(__CONCAT(__Tunable_init_, __LINE__), \ | ||||
SI_SUB_TUNABLES, SI_ORDER_MIDDLE, tunable_str_init, \ | SI_SUB_TUNABLES, SI_ORDER_MIDDLE, tunable_str_init, \ | ||||
&__CONCAT(__tunable_str_, __LINE__)) | &__CONCAT(__tunable_str_, __LINE__)) | ||||
#define TUNABLE_STR_FETCH(path, var, size) \ | #define TUNABLE_STR_FETCH(path, var, size) \ | ||||
getenv_string((path), (var), (size)) | getenv_string((path), (var), (size)) | ||||
typedef void (*ich_func_t)(void *_arg); | |||||
cem: the typedef could have the argument name omitted | |||||
struct intr_config_hook { | struct intr_config_hook { | ||||
TAILQ_ENTRY(intr_config_hook) ich_links; | TAILQ_ENTRY(intr_config_hook) ich_links; | ||||
void (*ich_func)(void *arg); | ich_func_t ich_func; | ||||
void *ich_arg; | void *ich_arg; | ||||
}; | }; | ||||
int config_intrhook_establish(struct intr_config_hook *hook); | int config_intrhook_establish(struct intr_config_hook *hook); | ||||
void config_intrhook_disestablish(struct intr_config_hook *hook); | void config_intrhook_disestablish(struct intr_config_hook *hook); | ||||
void config_intrhook_oneshot(ich_func_t _func, void *_arg); | |||||
#endif /* !_SYS_KERNEL_H_*/ | #endif /* !_SYS_KERNEL_H_*/ |
the typedef could have the argument name omitted