I know how normal, and I tried, but it seems like it is not working.
In linux / net / sched / sch_htb.c, I define a variable:
unsigned int queuelength;
EXPORT_SYMBOL(queuelength);
And some actions regarding the variable are not important.
In linux / net / ipv4 / tcp_dctcp.c,
extern unsigned int queuelength;
Error using net / built-in.o:
In function `dctcp_update_alpha':
linux/net/ipv4/tcp_dctcp.c:230: undefined reference to `queuelength'
The kernel version is v4.6.
source
share