From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dave Simmonds Newsgroups: gmane.os.tru64.managers Subject: accessing DISK_SPECIFIC structure Date: Wed, 24 May 2006 09:31:08 +0100 Message-ID: References: <9D592DB37A92234AB635C5585D2D08190430BB8C@cobra.pc.cognex.com> Reply-To: dave.simmonds@pawis.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1148459454 8763 80.91.229.2 (24 May 2006 08:30:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 May 2006 08:30:54 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed May 24 10:30:51 2006 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1FiolI-0001if-En for gotm-tru64-unix-managers@gmane.org; Wed, 24 May 2006 10:30:36 +0200 Original-Received: (qmail 5682 invoked by uid 49509); 24 May 2006 08:30:18 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5672 invoked by uid 49501); 24 May 2006 08:30:17 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 3.898808 secs); 24 May 2006 08:30:17 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute2.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 24 May 2006 08:30:13 -0000 Original-Received: from emroute2.ornl.gov (localhost [127.0.0.1]) by emroute2.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IZR005Q5GYCIY@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 24 May 2006 04:30:12 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.ornl.gov by emroute2.ornl.gov (PMDF V6.2-1x9 #31038) id <0IZR00C02GY6IG@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 24 May 2006 04:30:12 -0400 (EDT) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by emroute2.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IZR00AECGY023@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 24 May 2006 04:30:05 -0400 (EDT) Original-Received: from [81.178.0.156] (helo=davexp) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1Fiokf0ppK-0000ky; Wed, 24 May 2006 10:30:00 +0200 In-reply-to: <9D592DB37A92234AB635C5585D2D08190430BB8C@cobra.pc.cognex.com> Original-To: Tru64 Managers X-Envelope-from: dave.simmonds@pawis.com X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on spam2.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.1 X-Provags-ID: kundenserver.de abuse@kundenserver.de login:4eb5b7b3cf6522e82ac4516b3f154768 Xref: news.gmane.org gmane.os.tru64.managers:8916 Archived-At: 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