int devinet_ioctl_wrapper(unsigned int cmd, struct ifreq *arg)
{
int res;
mm_segment_t oldfs = get_fs();
set_fs(get_ds());
res = devinet_ioctl(cmd,arg);
set_fs(oldfs);
return res;
}
This is how ipconfig.c illustrates how to use this function from within a
kernel module, see ic_dev_ioctl() function in the source file.
When running in the scope of a kgdb patched kernel, an assertion is flagged
the first (and only first) time this function is called from within my
kernel module for skb_alloc being called non-atomically with interrupts
enabled. But, allowing the kernel to continue from this point, there is no
system freeze and everything appears to operate according to design.
Is there anything I am supposed to do before calling this function?
Thanks,
Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/