registering a block device code not clear what is passed on

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

 



On this link
http://code.google.com/p/ldd3-examples/source/browse/trunk/sbull/sbull.c#409
a function is defined as
sbull_major= register_blkdev(sbull_major, "sbull");
I am not able to understand sbull_major how can it be passed on to
register_blkdev function when return value from register_blkdev is
stored in sbull_major.
Is this a mistake in the code on the link?

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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