1 #ifndef _FSSH_KERNEL_EXPORT_H
2 #define _FSSH_KERNEL_EXPORT_H
16 extern fssh_thread_id
fssh_spawn_kernel_thread(fssh_thread_func function
,
17 const char *threadName
, int32_t priority
,
22 extern fssh_status_t
fssh_user_memcpy(void *dest
, const void *source
,
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
,
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
);
54 #endif // _FSSH_KERNEL_EXPORT_H