Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/src/linux_compat.c
| Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | |||||
| unsigned long linux_timer_hz_mask; | unsigned long linux_timer_hz_mask; | ||||
| wait_queue_head_t linux_bit_waitq; | wait_queue_head_t linux_bit_waitq; | ||||
| wait_queue_head_t linux_var_waitq; | wait_queue_head_t linux_var_waitq; | ||||
| const guid_t guid_null; | const guid_t guid_null; | ||||
| enum system_states system_state = SYSTEM_RUNNING; | enum system_states system_state = SYSTEM_RUNNING; | ||||
| struct task_struct * | |||||
| __lkpi_current(void) | |||||
markj: I don't really understand the namespacing in linuxkpi. When does one use `linux_` vs. `lkpi_`… | |||||
Done Inline ActionsI do not know either. I used __llkpi to clearly indicate that the symbol is in the implementation namespace. kib: I do not know either. I used __llkpi to clearly indicate that the symbol is in the… | |||||
| { | |||||
| struct thread *td; | |||||
| td = curthread; | |||||
| linux_set_current(td); | |||||
| return ((struct task_struct *)td->td_lkpi_task); | |||||
| } | |||||
| int | int | ||||
| panic_cmp(struct rb_node *one, struct rb_node *two) | panic_cmp(struct rb_node *one, struct rb_node *two) | ||||
| { | { | ||||
| panic("no cmp"); | panic("no cmp"); | ||||
| } | } | ||||
| RB_GENERATE(linux_root, rb_node, __entry, panic_cmp); | RB_GENERATE(linux_root, rb_node, __entry, panic_cmp); | ||||
| ▲ Show 20 Lines • Show All 2,883 Lines • Show Last 20 Lines | |||||
I don't really understand the namespacing in linuxkpi. When does one use linux_ vs. lkpi_ vs. __lkpi_?