QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1880|回复: 5

Linux中有没有消息机制呀?

[复制链接]
发表于 2003-5-8 21:15:45 | 显示全部楼层 |阅读模式
Linux中有没有消息机制呀
发表于 2003-5-8 22:10:47 | 显示全部楼层
user space or kernel space

for user space, check IPC including shm, sem, msg. man shmget, man semget, man msgget to get more info.
for kernel space, check signal.
回复

使用道具 举报

 楼主| 发表于 2003-5-9 12:21:10 | 显示全部楼层
那我想拦截IDE驱动中do_rw_disk()的信息,该怎么办呢?源码中好像根本没有那些东东吗?
回复

使用道具 举报

发表于 2003-5-9 21:34:58 | 显示全部楼层
linux source code will not add a signal send to sb before and after call do_rw_disk. if u want, u have to add it by uself. modifying the kernel code is the easist way.
回复

使用道具 举报

 楼主| 发表于 2003-5-10 13:41:50 | 显示全部楼层
那意思就是说修改内核源代码后还要重新编译内核了--我现在就这样做的!
现在老板要求做成模块化的,不重新编译内核的那种,我感觉好像不能实现?
回复

使用道具 举报

发表于 2003-5-11 01:05:49 | 显示全部楼层
no way,

boss are always idiot on this kind of problems. especially if u boss are over 40 years old.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-19 18:58 , Processed in 0.044520 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表