Linux中有没有消息机制呀?
Linux中有没有消息机制呀 user space or kernel spacefor user space, check IPC including shm, sem, msg. man shmget, man semget, man msgget to get more info.
for kernel space, check signal. 那我想拦截IDE驱动中do_rw_disk()的信息,该怎么办呢?源码中好像根本没有那些东东吗? 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. 那意思就是说修改内核源代码后还要重新编译内核了--我现在就这样做的!
现在老板要求做成模块化的,不重新编译内核的那种,我感觉好像不能实现? no way,
boss are always idiot on this kind of problems. especially if u boss are over 40 years old.
页:
[1]