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
做一个假的。。。。
发送给上层