On Mon, 13 Apr 2009 04:27:19 -0700 (PDT)
Pradeep <pradeep.gopanapalli at gmail.com> wrote:

> Hi All,
>           I want to know the way through mdb to print the structures
> and fields into , provided you have the address of that structure .

::print -t


> ::status
debugging live kernel (64-bit) on blinder
operating system: 5.11 snv_110 (i86pc)
> ::modinfo ! grep -i arcmsr
306 fffffffff878d000     a4e8   1 arcmsr (1.20.00.17Sun)
> ::print -t struct ARCMSR_CDB
{
    uint8_t Bus 
    uint8_t TargetID 
    uint8_t LUN 
    uint8_t Function 
    uint8_t CdbLength 
    uint8_t sgcount 
    uint8_t Flags 
    uint8_t Reserved1 
    uint32_t Context 
    uint32_t DataLength 
    uint8_t [16] Cdb 
    uint8_t DeviceStatus 
    uint8_t [15] SenseData 
    union  sgu {
        struct SG32ENTRY [38] sg32entry 
        struct SG64ENTRY [38] sg64entry 
    }
}



James C. McPherson
--
Senior Kernel Software Engineer, Solaris
Sun Microsystems
http://blogs.sun.com/jmcp       http://www.jmcp.homeunix.com/blog
Kernel Conference Australia - http://au.sun.com/sunnews/events/2009/kernel

Reply via email to