我编写了一个内核模块,我想在其中向用户空间程序发送接口向上/向下通知。我已将消息组分配为RTMGRP_LINK
并包含linux/rtnetlink.h
头文件。但是当我编译模块时仍然收到以下错误:
abc.c: In function âevent_handlerâ:
abc.c:63: error: âRTMGRP_LINKâ undeclared (first use in this function)
abc.c:63: error: (Each undeclared identifier is reported only once
abc.c:63: error: for each function it appears in.)
有人可以建议为什么吗?