Make UEFI boot-platform build again
[haiku.git] / headers / private / fs_shell / fssh_kernel_export.h
blobbb143dc566fa7bbc0f15c0dec9e62f3e7861bec5
1 #ifndef _FSSH_KERNEL_EXPORT_H
2 #define _FSSH_KERNEL_EXPORT_H
5 #include "fssh_defs.h"
6 #include "fssh_os.h"
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
14 /* kernel threads */
16 extern fssh_thread_id fssh_spawn_kernel_thread(fssh_thread_func function,
17 const char *threadName, int32_t priority,
18 void *arg);
20 /* misc */
22 extern fssh_status_t fssh_user_memcpy(void *dest, const void *source,
23 fssh_size_t length);
25 /* primitive kernel debugging facilities */
27 extern void fssh_dprintf(const char *format, ...) /* just like printf */
28 __attribute__ ((format (__printf__, 1, 2)));
29 extern void fssh_kprintf(const char *fmt, ...) /* only for debugger cmds */
30 __attribute__ ((format (__printf__, 1, 2)));
32 extern void fssh_dump_block(const char *buffer, int size,
33 const char *prefix);
35 extern void fssh_panic(const char *format, ...)
36 __attribute__ ((format (__printf__, 1, 2)));
38 extern void fssh_kernel_debugger(const char *message); /* enter kernel debugger */
39 extern uint32_t fssh_parse_expression(const char *string); /* utility for debugger cmds */
41 typedef int (*fssh_debugger_command_hook)(int argc, char **argv);
43 extern int fssh_add_debugger_command(const char *name,
44 fssh_debugger_command_hook hook, const char *help);
45 extern int fssh_remove_debugger_command(char *name,
46 fssh_debugger_command_hook hook);
49 #ifdef __cplusplus
51 #endif
54 #endif // _FSSH_KERNEL_EXPORT_H