2011-7-29 17:32:39

来源:互联网 发布:黑客 知乎 编辑:程序博客网 时间:2024/05/17 01:52
 

 


2011-7-29 17:32:39


netlink_proto_init


 nl_table = kcalloc(MAX_LINKS, sizeof(*nl_table), GFP_KERNEL);
 if (!nl_table)
  goto panic;
  
注册了32个这样的结构体


结构体如下

struct netlink_table {
 struct nl_pid_hash hash;
 struct hlist_head mc_list;
 unsigned long *listeners;
 unsigned int nl_nonroot;
 unsigned int groups;
 struct module *module;
 int registered;
};


platform_mmc_controller_2

做一个假的。。。。

发送给上层


  

原创粉丝点击