accessing DISK_SPECIFIC structure



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



Relevant Pages

  • 1571 SPEED ADJUSTMENT FOR SUPERCARD-RAMBOARD NEEDED
    ... speed control adjustment to a 1571 disk drive, ... I have a Supercard Plus 1571 installed, ... none of this shows anything about the speed control. ... If anyone has the original Documentation from Utilities Unlimited ...
    (comp.sys.cbm)
  • Re: software raid survey
    ... > documentation would help, so please post what you know. ... Vinum to create the objects. ... Clearly gvinum still has a way to go. ... the last sector of the disk which is both a geom configuration sector and part ...
    (comp.unix.bsd.freebsd.misc)
  • Re: CreateFile() and FILE_FLAG_WRITE_THROUGH
    ... the CreateFile documentation states this: ... to disk without going through the system cache. ... If I create a file using CreateFile(), ... Surely the whole point of specifying that flag is that I want the data to be ...
    (microsoft.public.win32.programmer.kernel)
  • Re: find out whether a disk has used at all
    ... What type of full system audit do you do at your site. ... I want to use this disk for some other purpose. ... > documentation previous admins kept on the box that outlines what each ... > DeeDee, don't press that button! ...
    (comp.unix.solaris)
  • Re: find out whether a disk has used at all
    ... >> documentation previous admins kept on the box that outlines what each ... >> disk used along with filesystems associated with it. ... Is there some account naming policy that works for all systems in the ... How guessable are user passwords? ...
    (comp.unix.solaris)