On Sat, 27 Apr 2013 19:34:00 +0300, Kevin Wilson said:
Hello,
static int __init init_zeromib(void)
This is your init routine...
{
int ret = 0;
printk(in %s\n,__func__);
Missing KERN_DEBUG or similar here. This can cause it to fail
to appear in dmesg output, causing much confusion.
Valdis,
Thanks a lot for you answer.
this_cpu_sub() in fact is defined thus:
# define this_cpu_sub(pcp, val) this_cpu_add((pcp), -(val))
so it does not matter so much.
I did not know this_cpu_write() and it does work.
Is __this_cpu_write() an atomic operation ?
rgs
Kevin
On Sun, Apr
Hello,
I have written a short kernel module which should zero a network SNMP
mib. I have OOPs.
My idea was to take an existing macro that adds an integer to a network SNMP
mib and to change it so that it would zero that counter.
So I tool the TCP_ADD_STATS() macro - see in the comments of the