一、nlmsg_new函数的作用和用法 1.作用 nlmsg_new函数用于创建一个新的netlink消息,它返回一个指向新消息的指针。 2.用法 在使用nlmsg_new函数之前,首先需要引入相关的头文件: c #include <linux/netlink.h> 然后,可以按照下面的步骤使用nlmsg_new函数: c struct nlmsghdr *nlmsg_new(size_t payload, int fl...
通过引入新功能"nlmsg new",红帽公司进一步提升了Linux系统的通信性能,为企业用户提供更好的用户体验和更强大的功能。企业用户可以放心地选择红帽Linux作为其服务器操作系统,以确保系统的稳定性和安全性。
recover that code I suppose. > > > [snip] > > > +chan_put_failure: > > > + if (!last_channel_pos) > > > + goto nla_put_failure; > > > + > > > + nlmsg_trim(msg, last_channel_pos); > > > + nla_nest_end(msg, nl_freqs); > > > nla_nest_end(msg, nl_band); ...
If this is right, we really do need to be able to split this, because we have ~60 channels in the 6/7 GHz band ... > > > The current logic uses last_channel_pos for some of the trickery in > > > addition to last_good_pos. So nla_put_failure would have to be made > > ...