block device drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux