📄 init.c
字号:
/* Message Queues for FD32: driver initialization * by Luca Abeni * * This is free software; see GPL.txt */#include <ll/i386/hw-data.h>#include <ll/i386/error.h>#include <kernel.h>#include "msg.h"void msgq_init(void){ int res; message("FD/32 Message Queues: Adding syscalls\n"); res = add_call("fd32_msg_newqueue", (DWORD)fd32_msg_newqueue, ADD); if (res < 0) { error("Cannot add fd32_msg_newqueue...\n"); } res = add_call("fd32_msg_killqueue", (DWORD)fd32_msg_killqueue, ADD); if (res < 0) { error("Cannot add fd32_msg_killqueue...\n"); } res = add_call("fd32_msg_enqueue", (DWORD)fd32_msg_enqueue, ADD); if (res < 0) { error("Cannot add fd32_msg_enqueue...\n"); } res = add_call("fd32_msg_dequeue", (DWORD)fd32_msg_dequeue, ADD); if (res < 0) { error("Cannot add fd32_msg_dequeue...\n"); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -