On Mon, Feb 15, 2016 at 3:39 AM, Huang, Ying <ying.huang(a)intel.com> wrote:
Michael Welling <mwelling(a)ieee.org> writes:
> Could you run cat /proc/devices?
Sorry, the test mechanism is not flexible enough to run some shell
command in test system. Could you provide a specialized debug kernel to
dump the necessary information in kernel log? We can collect dmesg
Can you try this:
diff --git a/fs/char_dev.c b/fs/char_dev.c
index 24b142569ca9..74a2d433273e 100644
@@ -96,6 +96,8 @@ __register_chrdev_region(unsigned int major,
unsigned int baseminor,
major = i;
+ pr_info("CHARDEV: allocate major %d for \"%s\"\n",
+ i, name);
cd->major = major;
Then dmesg |grep CHARDEV should tell what we need to know.