30 Oct 2001 kroah   » (Master)

PCI Hotplug
Wee, got the PCI Hotplug core code and Compaq PCI Hotplug driver into the -ac kernel tree.
The PCI Hotplug core is one of the first drivers to be a filesystem. It uses a ram based file system to interace with userspace, instead of the ugly /proc or /dev nodes with ioctls and such. Just mount the pcihpfs file system where ever you want and you get a tree that looks something like:
.
|-- 2
|   |-- adapter
|   |-- attention
|   |-- latch
|   |-- power
|   `-- test
|-- 3
|   |-- adapter
|   |-- attention
|   |-- latch
|   |-- power
|   `-- test
|-- 4
|   |-- adapter
|   |-- attention
|   |-- latch
|   |-- power
|   `-- test
|-- 5
|   |-- adapter
|   |-- attention
|   |-- latch
|   |-- power
|   `-- test
`-- 6
    |-- adapter
    |-- attention
    |-- latch
    |-- power
    `-- test
Then just read the status of the different slots, and change the values by using 'echo' and 'bash'. So to turn on slot 6, you would do:
     echo 1 > ./6/power

The PCI Hotplug core also is the first chunk of kernel code that uses the EXPORT_SYMBOL_GPL() macro instead of the traditional EXPORT_SYMBOL() one. People at Intel are going to love that one :)

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!