nl80211分析
1.用genl_register_family函数,注册nl80211_fam结构。
2.初始化了struct genl_family nl80211_fam结构。主要字段有op字段,值为nl80211_ops。
3.初始化了nl80211_ops,
struct genl_ops nl80211_ops[]
这个数组都是命令。即通过Generic netlink套接字通信发送的命令。
4.比如NL80211_CMD_GET_WIPHY
它有回调函数nl80211_dump_wiphy
5.然后调用nl80211_dump_wiphy_parse。
前面的函数都定义在nl80211.c中。
6.然后调用nlmsg_parse。
定义在linux下的netlink.h中