<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Ioctls in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ioctls/m-p/4034857#M64589</link>
    <description>1.)&lt;BR /&gt;In Linux 2.6 kernel series, the current recommended way to get passthrough access for *any* SCSI-like device (including IDE ATAPI) is  to use the SG_IO ioctl.&lt;BR /&gt;&lt;BR /&gt;For more information, see:&lt;BR /&gt;&lt;A href="http://sg.torque.net/sg/sg_io.html" target="_blank"&gt;http://sg.torque.net/sg/sg_io.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When using a passthrough, you must be able to use &amp;amp; understand the "raw" protocol used by the device, so it would be necessary to read the relevant SCSI and IDE ATAPI standards documents too.&lt;BR /&gt;&lt;BR /&gt;With hardware RAID devices it's probably RAID controller-specific. Besides, when a hardware RAID is involved, something that looks like a single disk might actually be a collection of several physical disks - so a "serial number" of such a disk is likely to be generated by the RAID controller, and not necessarily related to the real serial number of any piece of hardware.&lt;BR /&gt;&lt;BR /&gt;2.)&lt;BR /&gt;If the device is not a FibreChannel device or a modern SCSI device, the WWID may simply not exist.&lt;BR /&gt;&lt;BR /&gt;The HDIO_ ioctls might be useful. For more documentation, get a copy of Linux kernel sources, then read linux-&lt;VERSION&gt;/Documentation/ioctl/hdio.txt file in the source package.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/VERSION&gt;</description>
    <pubDate>Thu, 12 Jul 2007 08:59:37 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2007-07-12T08:59:37Z</dc:date>
    <item>
      <title>Ioctls</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ioctls/m-p/4034856#M64588</link>
      <description>I need to implement getting some of the device(sg/sd/ide/cciss) information in 2 methods. One using passthrough and an other using OS given info using the ioctls. In this regard I need the following info,&lt;BR /&gt;&lt;BR /&gt; 1. How do I issue a passthrough to a IDE/SATA device?&lt;BR /&gt;&lt;BR /&gt;2. What ioctls can be used to get the WWID, serial no, capacity of devices not using the passthrough.</description>
      <pubDate>Tue, 10 Jul 2007 07:48:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ioctls/m-p/4034856#M64588</guid>
      <dc:creator>Veena_mp</dc:creator>
      <dc:date>2007-07-10T07:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ioctls</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ioctls/m-p/4034857#M64589</link>
      <description>1.)&lt;BR /&gt;In Linux 2.6 kernel series, the current recommended way to get passthrough access for *any* SCSI-like device (including IDE ATAPI) is  to use the SG_IO ioctl.&lt;BR /&gt;&lt;BR /&gt;For more information, see:&lt;BR /&gt;&lt;A href="http://sg.torque.net/sg/sg_io.html" target="_blank"&gt;http://sg.torque.net/sg/sg_io.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When using a passthrough, you must be able to use &amp;amp; understand the "raw" protocol used by the device, so it would be necessary to read the relevant SCSI and IDE ATAPI standards documents too.&lt;BR /&gt;&lt;BR /&gt;With hardware RAID devices it's probably RAID controller-specific. Besides, when a hardware RAID is involved, something that looks like a single disk might actually be a collection of several physical disks - so a "serial number" of such a disk is likely to be generated by the RAID controller, and not necessarily related to the real serial number of any piece of hardware.&lt;BR /&gt;&lt;BR /&gt;2.)&lt;BR /&gt;If the device is not a FibreChannel device or a modern SCSI device, the WWID may simply not exist.&lt;BR /&gt;&lt;BR /&gt;The HDIO_ ioctls might be useful. For more documentation, get a copy of Linux kernel sources, then read linux-&lt;VERSION&gt;/Documentation/ioctl/hdio.txt file in the source package.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/VERSION&gt;</description>
      <pubDate>Thu, 12 Jul 2007 08:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ioctls/m-p/4034857#M64589</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-07-12T08:59:37Z</dc:date>
    </item>
  </channel>
</rss>

