1. 首页
  2. 数据库
  3. 其它
  4. Linux网络中通知链的使用

Linux网络中通知链的使用

上传者: 2021-01-17 00:31:49上传 PDF文件 51.71KB 热度 6次
Linux 网络内核代码中使用了通知链(Notification Chains)来使相关的子系统对感兴趣的事件作出反应。下面从头介绍一下通知链的使用。 数据结构定义 通知链使用的数据结构如下: struct notifier_block { int (*notifier_call)(struct notifier_block *, unsigned long, void *); struct notifier_block *next; int priority; }; 其 中notifier_call 是通知链要执行的函数指针,后面会介绍它的参数
下载地址
用户评论