netfilter enum conflict?

2001-01-01 Thread Mark James
Hi: include/linux/netfilter_ipv4.h and include/linux/netfilter_ipv6.h both define enum nf_ip_hook_priorities. This trips the compiler if both are included. Should one change to nf_ipv6_hook_priorities? Mark - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: Function calls not permitted in kernel code

2000-09-20 Thread Mark James
Thank you Tigran and Peter for your replies. In summary: - Kernel code can't or shouldn't do anything too high-level. Emulating high-level things through calls to other parts of the kernel is not likely to be portable across versions. - A subset of libc functions is in the linux/lib

Function calls not permitted in kernel code

2000-09-20 Thread Mark James
Hi, couldn't find an answer to this in any FAQ: Can anyone point me to a clear summary of what can and what can't be called by kernel code. That is, can a kernel module open and read files or sockets, call libc functions, start processes? If, as I suspect, none of these are possible, are the

Function calls not permitted in kernel code

2000-09-20 Thread Mark James
Hi, couldn't find an answer to this in any FAQ: Can anyone point me to a clear summary of what can and what can't be called by kernel code. That is, can a kernel module open and read files or sockets, call libc functions, start processes? If, as I suspect, none of these are possible, are the

Re: Function calls not permitted in kernel code

2000-09-20 Thread Mark James
Thank you Tigran and Peter for your replies. In summary: - Kernel code can't or shouldn't do anything too high-level. Emulating high-level things through calls to other parts of the kernel is not likely to be portable across versions. - A subset of libc functions is in the linux/lib