ldd scull question about scull_device*

From: runcoderen
Date: Sun Sep 05 2010 - 19:05:47 EST


hi all:
when I am reading ldd(3rd) book about char device driver.
I have a question to ask:

I have seem the code in scull_init_module to create 4
scull_dev(scull_dev *).

but when I browse scull_write & scull_read function, I can see the code
only secure 1 scull_dev. and I don't know which scull_dev in scull_dev*
created before are I am using.

can anyone help me?

and why the author try to create 4 scull_device in scull_init_module?

runcoderen

--

/****************************************
http://runcoderen.wordpress.com
****************************************/

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/