Sam Wan
2007-Oct-22 04:16 UTC
[dtrace-discuss] what''s the difference between b_blkno and b_lblkno of bufinto_t structure
An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20071022/c01c4848/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: left Type: image/gif Size: 2548 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20071022/c01c4848/attachment.gif> -------------- next part -------------- A non-text attachment was scrubbed... Name: bottom Type: image/gif Size: 1557 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20071022/c01c4848/attachment-0001.gif> -------------- next part -------------- A non-text attachment was scrubbed... Name: wan.sam.vcf Type: text/x-vcard Size: 166 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20071022/c01c4848/attachment.vcf>
Brian Utterback
2007-Oct-22 12:30 UTC
[dtrace-discuss] what''s the difference between b_blkno and b_lblkno of bufinto_t structure
In a 64-bit kernel, they are the same. In a 32-bit kernel, b_blkno is the whole 64 bit block number, while b_lblkno is the lower 32 bits. Sam Wan wrote:> Dear experts, > > Could you pls tell me what''s the difference between b_blkno and > b_lblkno of bufinto_t structure as there''s no clear explanation in the > Dtrace Guide. > > typedef struct bufinfo { > int b_flags; /* flags */ > size_t b_bcount; /* number of bytes */ > caddr_t b_addr; /* buffer address */ > *uint64_t b_blkno; /* expanded block # on device */* > *uint64_t b_lblkno; /* block # on device */* > size_t b_resid; /* # of bytes not transferred */ > size_t b_bufsize; /* size of allocated buffer */ > caddr_t b_iodone; /* I/O completion routine */ > dev_t b_edev; /* extended device */ > } bufinfo_t; > > more detailed the better. > Thanks and best regards. > > Sam > > -- > > <http://www.sun.com/> > > > > *Sam Wan** - System Support Engineer* > * Sun Microsystems (China),Chengdu Office* > Add: Suite C, 11/F, Chuan Xin Mansion, No.18 Sec.2 Ren Min S.Rd, > Chengdu,China. 610016 > Tel: 86-28-86199333 ext. 84243 > Fax: 86-28-86199333 > Mobile: 86-13980681947 > Email: wan.sam at sun.com <mailto:wan.sam at sun.com> > MSN: wan_sam at hotmail.com <mailto:wan_sam at hotmail.com> > > <http://www.sun.com/> > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- blu "You''ve added a new disk. Do you want to replace your current drive, protect your data from a drive failure or expand your storage capacity?" - Disk management as it should be. ---------------------------------------------------------------------- Brian Utterback - Solaris RPE, Sun Microsystems, Inc. Ph:877-259-7345, Em:brian.utterback-at-ess-you-enn-dot-kom