Hi,
I am trying to implement a linux block device driver.And I have
some doubts while understanding the drivers.I am listing them.Will you
please help me.
1.In the struct gendisk structure wht is the field
int first_minor;
refer to?
is it the first partion number?wht is the partion number mean?
and wht is the field minors refer to?
and while implementing in a sample driver they are using
dev->gd->first_minor = which*NUM_OF_MINORS;
where gd is the reference to gendisk structure
wht is the word 'which' refer to and in which file it is defined?
i am using the
set_capacity(dev->gd, nsectors*(hardsect_size/KERNEL_SECTOR_SIZE));
then
and i am getting the error undefined symbol KERNEL_SECTOR_SIZE.
where it is located.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/