* how opensolaris stores the major number ?
@ 2011-01-05 7:00 Deepen Mehta
2011-01-05 9:48 ` Deepen Mehta
0 siblings, 1 reply; 2+ messages in thread
From: Deepen Mehta @ 2011-01-05 7:00 UTC (permalink / raw)
To: kernelnewbies
Hi,
zfs_mknode is the function use by mknod syscall to create device special
file
in solaris kernel. I traverse the code and just found how they stores the
minor number
which is in znode's(disk inode of Linux) attributes struct called
sa_bulk_attr field
uint16_t sa_buftype which is of 16bit only. so, it just store minor number
in this field.
And I am failed to understand where/how the solaris exact stores major
number
from code traversing.
so, can somebody clarify where/how the major number stores in solaris code
or in znode(disk inode).
the source is available online and following link is of zfs_znode.c file
having
zfs_mknode function...
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/zfs_znode.c
Regards,
Deepen Mehta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110105/7c8da00d/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-05 9:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-05 7:00 how opensolaris stores the major number ? Deepen Mehta
2011-01-05 9:48 ` Deepen Mehta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).