init.c
来自「freedos32的源代码」· C语言 代码 · 共 36 行
C
36 行
/* 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 + =
减小字号Ctrl + -
显示快捷键?