Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/kernel.h
Show First 20 Lines • Show All 460 Lines • ▼ Show 20 Lines | |||||
#define TUNABLE_STR_FETCH(path, var, size) \ | #define TUNABLE_STR_FETCH(path, var, size) \ | ||||
getenv_string((path), (var), (size)) | getenv_string((path), (var), (size)) | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
typedef void (*ich_func_t)(void *_arg); | typedef void (*ich_func_t)(void *_arg); | ||||
struct intr_config_hook { | struct intr_config_hook { | ||||
TAILQ_ENTRY(intr_config_hook) ich_links; | STAILQ_ENTRY(intr_config_hook) ich_links; | ||||
uintptr_t ich_flags; | |||||
#define ICHF_RUNNING 0x1 | |||||
jhb: Since you don't use these flags yet, I would not add these constants until D29005 and just add… | |||||
jhbUnsubmitted Not Done Inline ActionsMaybe call it ich_pad in this commit since you end up renaming it in D29005 anyway. I guess then you might say "and keep padding" or some such instead in your commit log instead of "and add flags" and similarly adjust the log to say you are leaving the second pointer as a padding placeholder for a subsequent commit. jhb: Maybe call it ich_pad in this commit since you end up renaming it in D29005 anyway. I guess… | |||||
impAuthorUnsubmitted Done Inline ActionsI'll just call it ich_state, just like in D29005 and tweak the commit message. imp: I'll just call it ich_state, just like in D29005 and tweak the commit message. | |||||
#define ICHF_DONE 0x2 | |||||
ich_func_t ich_func; | 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); | void config_intrhook_oneshot(ich_func_t _func, void *_arg); | ||||
#endif /* !_SYS_KERNEL_H_*/ | #endif /* !_SYS_KERNEL_H_*/ |
Since you don't use these flags yet, I would not add these constants until D29005 and just add the ich_flags member in this commit.