Hello Ming... > I want to debug a new ethernet driver. Instead of changing code and > build the KLM again, I like to have an user application to control a > debug flag in driver so that I can change driver behaior. What is the > best way to do that ? Any sample code out there. I personally suggest to create new procfs/debugfs/sysfs entry, use it to modify a variable inside your driver. Then, based on this variable's value, act accordingly in your driver. For instruction on how to create procfs/sysfs/debugfs, you can refer to Linux Kernel Module programming guid (on tldp.org) or articles on Linux Weekly News (lwn.net). Good luck.. regards Mulyadi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/