Linux4.10API接口变化1.删除了API函数__genl_register_family_with_ops(family,ops,n_ops)。2.删除API宏函数genl_register_family_with_ops(family,ops)。Git提交链接:https://github.com/torvalds/l...#Kerneldeveloperloggenetlink:staticallyinitializefamiliesInsteadofprovidingmacros/inlinefunctionstoinitializethefamilies,makeallusersstaticallyinitializethemandgetthemacros.这将x86-64上的内核代码大小减少了大约1.6k(使用allyesconfig)。签名:JohannesBerg签名:DavidS.Miller3.删除常量定义GENL_ID_GENERATEgitcommitloglink:https://github.com/torvalds/l...#kerneldeveloperlog3genetlink:不再支持使用静态家族IDsStaticfamilyIDs从未真正被使用过,唯一的用例是我为那些假设他们的家庭ID也是他们的多播组ID的用户介绍了解决方法。此外,因为静态系列ID永远不会被通用网络链接代码保留,所以使用ng一个相对较低的ID只适用于在通用网络链接启动后可以立即注册的内置系列,这基本上只是控制系列(除了解决方法代码,我还必须添加代码以便保留这些ID)因此,除了GENL_ID_GENERATE之外的任何东西都是有缺陷的,幸运的是除了我提到的情况外没有使用。将这些解决方法移到几行代码中,然后完全摆脱GENL_ID_GENERATE,使其更加健壮。签名:JohannesBerg签名:DavidS.MillerLinux3.13.0API接口修改了API函数genl_register_ops()/genl_unregister_ops()git提交日志链接:https://github.com/torvalds/l...#内核开发者日志genetlink:removegenl_register_ops/genl_unregister_opsgenl_register_ops()仍然需要内部注册,但API的用户不再可用。签名:JohannesBerg签名-作者:DavidS.Miller