Chinaunix首页 | 论坛 | 博客
  • 博客访问: 401121
  • 博文数量: 124
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 872
  • 用 户 组: 普通用户
  • 注册时间: 2018-03-29 14:38
个人简介

默默的一块石头

文章分类

全部博文(124)

文章存档

2022年(26)

2021年(10)

2020年(28)

2019年(60)

我的朋友

发布时间:2019-11-13 15:02:26

最近正在看网络代码,书中说内核子系统在初始化时候会注册到自己感兴趣事件的notification chains上。然后在events发生时候,由notifier_call_chain()函数产生,并遍历所有回调函数,调用此event回调函数来处理事件的变化对该子系统的影响。但是当事件发生的时候,谁来触发调用notifier_call_chain()函数呢.........【阅读全文】

阅读(4626) | 评论(0) | 转发(0)

发布时间:2019-11-11 15:05:12

内核中的很多子系统都是联系很紧密的,因此有可能某个子系统的某些事件,其他多个子系统都很感兴趣,此时就需要用到notification chain.举个具体的例子,比如说一台主机由于某个网卡的损坏或其他原因不能使用,从而导致连接此网卡的网络不能使用,这个时侯就是notification chain.来通知路由表去除这个网络的路由表项。.........【阅读全文】

阅读(1175) | 评论(0) | 转发(0)

发布时间:2019-11-01 17:31:41

int main(int argc, char *argv[]) {       _cleanup_free_ char *cgroup = NULL;       int fd_ctrl = -1, fd_uevent = -1;       int r;       r = parse_argv(.........【阅读全文】

阅读(1895) | 评论(0) | 转发(0)

发布时间:2019-11-01 17:30:22

int bus_match(struct device *dev, struct device_driver *drv);int bus_match(struct device *dev, struct device_driver *drv){ const struct of_device_id * pof_match_table = drv->of_match_table; struct device * pdev; for (pof_match_table; pof_match_table->name[0]; po.........【阅读全文】

阅读(1286) | 评论(0) | 转发(0)

发布时间:2019-11-01 09:57:16

2.移除device于net_device之间的设定/* Set the sysfs physical device reference for the network logical device * if set prior to registration will cause a symlink during initialization. */#define SET_NETDEV_DEV(net, pdev) ((net)->dev.parent = (pdev))......【阅读全文】

阅读(1177) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册