Skip to contentSkip to conversation

ldd scull question about scull_device*

DISCUSSION runcoderen 1 participant 1 message Sep 5, 2010

lore
Share & tools
lore

runcoderen

author
#0 lore raw

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

Signature · 3 lines
/****************************************
http://runcoderen.wordpress.com
****************************************/