tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Dave Simmonds <dave.simmonds@pawis.com>
Subject: accessing DISK_SPECIFIC structure
Date: Wed, 24 May 2006 09:31:08 +0100	[thread overview]
Message-ID: <NDBBLPGGILIFJDDIACJOEEKJJIAA.dave.simmonds@pawis.com> (raw)
In-Reply-To: <9D592DB37A92234AB635C5585D2D08190430BB8C@cobra.pc.cognex.com>

I am trying to access the kernel structure DISK_SPECIFIC for each disk in my
V5.1 system.

I can get the SCSI_DIDARR structures via calls to nlist for
_camdb_didarr_ptr and _camdb_did_high.
I then look for dev_type == ALL_DTYPE_DIRECT to find the hard disks.
Under V4.0X, I used cam_ptr to find a PDRV_DEVICE3 structure which contained
an element pd_spec_list, but under V5.1 pd_spec_list is actually contained
in the SCSI_DIDARR structure.
I search down this list.
Under V4.0X I looked for spec_reg_no == 1 and spec_ptr pointed at a
DISK_SPECIFIC structure.
Under V5.1 I don't get any records with spec_reg_no == 1, I get a record
with spec_reg_no == 2, which has a spec_size of 1440. I don't know what type
of structure this is, and I get stuck at this point.

Does anyone know what this record with spec_reg_no == 2 is, or have any
other ideas about finding DISK_SPECIFIC structures.
I can't find any documentation on this anywhere - I feel I've done quite
well to work out as much as I have on my own!

Thanks,
Dave Simmonds




      reply	other threads:[~2006-05-24  8:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-19 16:28 SUMMARY: find out one's own PID when running from cron Cohen, Andy
2006-05-24  8:31 ` Dave Simmonds [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox