Read any good document on how-to write kernel devices and it will say NOT to open files in kernel. Read: How to NOT write a kernel driver (OLS) http://people.redhat.com/arjanv/olspaper.pdf - : send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html