gxqing 发表于 2003-5-8 21:15:45

Linux中有没有消息机制呀?

Linux中有没有消息机制呀

Dragonfly 发表于 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.

gxqing 发表于 2003-5-9 12:21:10

那我想拦截IDE驱动中do_rw_disk()的信息,该怎么办呢?源码中好像根本没有那些东东吗?

Dragonfly 发表于 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.

gxqing 发表于 2003-5-10 13:41:50

那意思就是说修改内核源代码后还要重新编译内核了--我现在就这样做的!
现在老板要求做成模块化的,不重新编译内核的那种,我感觉好像不能实现?

Dragonfly 发表于 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.
页: [1]
查看完整版本: Linux中有没有消息机制呀?