摘要:接口变更删除了函数删除了宏函数提交链接内核开发者日志删除了常量定义提交日志链接内核开发者日志接口变更删除了函数提交日志链接内核开发者日志
Linux 4.10 API接口变更 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...
# 内核开发者日志 genetlink: statically initialize families Instead of providing macros/inline functions to initialize the families, make all users initialize them statically and get rid of the macros. This reduces the kernel code size by about 1.6k on x86-64 (with allyesconfig). Signed-off-by: Johannes Berg3. 删除了常量定义GENL_ID_GENERATESigned-off-by: David S. Miller
git提交日志链接:
https://github.com/torvalds/l...
# 内核开发者日志3 genetlink: no longer support using static family IDs Static family IDs have never really been used, the only use case was the workaround I introduced for those users that assumed their family ID was also their multicast group ID. Additionally, because static family IDs would never be reserved by the generic netlink code, using a relatively low ID would only work for built-in families that can be registered immediately after generic netlink is started, which is basically only the control family (apart from the workaround code, which I also had to add code for so it would reserve those IDs) Thus, anything other than GENL_ID_GENERATE is flawed and luckily not used except in the cases I mentioned. Move those workarounds into a few lines of code, and then get rid of GENL_ID_GENERATE entirely, making it more robust. Signed-off-by: Johannes BergLinux 3.13.0 API接口变更Signed-off-by: David S. Miller
删除了API函数genl_register_ops() / genl_unregister_ops()
git提交日志链接:
https://github.com/torvalds/l...
# 内核开发者日志 genetlink: remove genl_register_ops/genl_unregister_ops genl_register_ops() is still needed for internal registration, but is no longer available to users of the API. Signed-off-by: Johannes BergSigned-off-by: David S. Miller
文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。
转载请注明本文地址:https://www.ucloud.cn/yun/23886.html
摘要:接口变更删除了函数删除了宏函数提交链接内核开发者日志删除了常量定义提交日志链接内核开发者日志接口变更删除了函数提交日志链接内核开发者日志 Linux 4.10 API接口变更 1. 删除了API函数__genl_register_family_with_ops(family, ops, n_ops). 2. 删除了API宏函数genl_register_family_with_ops(...
摘要:接口变更删除了函数删除了宏函数提交链接内核开发者日志删除了常量定义提交日志链接内核开发者日志接口变更删除了函数提交日志链接内核开发者日志 Linux 4.10 API接口变更 1. 删除了API函数__genl_register_family_with_ops(family, ops, n_ops). 2. 删除了API宏函数genl_register_family_with_ops(...
摘要:一消息结构消息在以流的形式在程序之间进行传递,一个流中可能包含多个消息。对于每个消息消息来说,为了便于维护和方便使用,还需要一些有关记录消息的信息。成员指明了该响应函数对其能够处理的信息的要求。版本号最大属性数该命令族的名为。 一、generic netlink 消息结构 消息在以流的形式在程序之间进行传递,一个流中可能包含多个消息。showImg(https://segmentfau...
摘要:是一种用于用户态进程和内核态进程之间的通信机制。它通过为内核模块提供一组特殊的,并为用户程序提供了一组标准的接口的方式,实现了全双工的通讯连接。只要的返回值大于,函数就会再次被调用,并被要求在中填入数据。 netlink netlink socket是一种用于用户态进程和内核态进程之间的通信机制。它通过为内核模块提供一组特殊的API,并为用户程序提供了一组标准的socket接口的方式,...
摘要:是一种用于用户态进程和内核态进程之间的通信机制。它通过为内核模块提供一组特殊的,并为用户程序提供了一组标准的接口的方式,实现了全双工的通讯连接。只要的返回值大于,函数就会再次被调用,并被要求在中填入数据。 netlink netlink socket是一种用于用户态进程和内核态进程之间的通信机制。它通过为内核模块提供一组特殊的API,并为用户程序提供了一组标准的socket接口的方式,...
阅读 2476·2021-11-24 09:38
阅读 1879·2019-08-30 15:53
阅读 929·2019-08-30 15:44
阅读 3084·2019-08-30 14:10
阅读 3460·2019-08-29 16:29
阅读 1706·2019-08-29 16:23
阅读 990·2019-08-29 16:20
阅读 1375·2019-08-29 11:13