Write long to linux char device driver?
问题 I'm trying to write a character device driver in linux. Unfortunately it's not working for any numbers greater than 255. I want this driver specifically to work with value of type long . Anytime I input a value greater than 255, the numbers wrong. 256 goes to 0 etc. I've written a simple character device driver that shows the problem, there might be a lot of unused include statements as I copied my full driver and deleted almost everything: chartest.c #include <linux/init.h> #include <linux