<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://purl.org/rss/1.0/"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
>

  <channel rdf:about="http://lwn.net/headlines/31220/">
    <title>LWN: Comments on "Driver porting: Devices and attributes"</title>
    <link>http://lwn.net/Articles/31220/</link>
    <description>
This is a special feed containing comments posted
to the individual LWN article titled &quot;Driver porting: Devices and attributes&quot;.

    </description>

    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>2</syn:updateFrequency>
    <items>
      <rdf:Seq>
	<rdf:li resource="http://lwn.net/Articles/208250/rss" />
	<rdf:li resource="http://lwn.net/Articles/184467/rss" />
	<rdf:li resource="http://lwn.net/Articles/37996/rss" />
	<rdf:li resource="http://lwn.net/Articles/32380/rss" />
      
      </rdf:Seq>
    </items>

  </channel>
    <item rdf:about="http://lwn.net/Articles/208250/rss">
      <title>Driver porting: Devices and attributes</title>
      <link>http://lwn.net/Articles/208250/rss</link>
      <dc:date>2006-11-08T08:23:42+00:00</dc:date>
      <dc:creator>stanleychen_augmentum</dc:creator>
      <description>
      You mentioned that System bus devices are represented by struct sys_device. Does System bus here mean platform bus which is virtual ?  &lt;br&gt;
      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/184467/rss">
      <title>No C++ Drivers, Any More</title>
      <link>http://lwn.net/Articles/184467/rss</link>
      <dc:date>2006-05-19T21:17:19+00:00</dc:date>
      <dc:creator>flatfive</dc:creator>
      <description>
      What are the merits of supporting drivers written in C++?&lt;br&gt;
&lt;p&gt;
&lt;p&gt;
      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/37996/rss">
      <title>Device drivers must not create device attributes!</title>
      <link>http://lwn.net/Articles/37996/rss</link>
      <dc:date>2003-06-26T15:14:42+00:00</dc:date>
      <dc:creator>Alan.Stern</dc:creator>
      <description>
      This otherwise helpful article contains a mistake that has been made by several developers.  Device drivers do not own the device structures they register; these are owned by the bus driver.  The most important consequence of this is that the device driver cannot know when all references to its device structure have gone away.  References to a device attribute file may persist indefinitely, for as long as a user process has the attribute file open.&lt;p&gt;This means that even after a driver has de-registered its device and has been rmmod'ed and unloaded from memory, the attribute's show() or store() methods might be called.  Of course this would be a disaster, since the code for that method would no longer exist.&lt;p&gt;People now recognize that drivers should only create attributes for device structures that they own.  The proper way to create a device-specific attribute is to attach the attribute to a class_device, because the driver is able to create and own its class_devices.  A driver should never attach an attribute to the device structure it is bound to.&lt;br&gt;
      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/32380/rss">
      <title>No C++ Drivers, Any More</title>
      <link>http://lwn.net/Articles/32380/rss</link>
      <dc:date>2003-05-15T17:14:02+00:00</dc:date>
      <dc:creator>ncm</dc:creator>
      <description>
      This is a clever and sneaky way to ensure that 
no drivers written in C++ can be added on, or
even ported from 2.4.  It was possible, before.
&lt;p&gt;
Shame on somebody. 
      
      </description>
    </item>
</rdf:RDF>

