The following series of four patches adds the possiblity for creating device nodes for each node attached to the firewire bus and accessing them (currently read-only) which yields access to the node's RAM, if supported. This is useful for peeking into machines during debugging (obviously only if you can attach a firewire cable). This is already supported via the raw1394 interface, but surfacing this like /dev/mem is advantageous because then user-space tools can work without modification. mem1394 itself is currently a bit limited and lacking on the error-checking, it will be improved but I wanted to get some comments on the current patches too. Write support will also be added. The node interface and dynamic character device allocation are useful on their own if another layer is ever introduced -- which has been under discussion once a while to make something similar to raw1394 that gives access only to certain nodes to separate users. If you want to test this add a udev rule like the following: KERNEL=="fwmem-[0-9]*", NAME="fwmem-%s{device/guid}" and then use dd if=/dev/fwmem-0x<GUID> bs=1K count=1024 of=/tmp/first-megabyte to, for example, read the targets first megabyte of memory. The patches (will be posted as follow-ups): 1/4: node interface 2/4: dynamic cdev allocation below firewire major 3/4: unconditionally export hpsb_send_packet_and_wait 4/4: add mem1394 Comments would be appreciated. Thanks, Johannes
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- [RFC 4/4] firewire: add mem1394
- From: Johannes Berg <[email protected]>
- [RFC 3/4] firewire: unconditionally export hpsb_send_packet_and_wait
- From: Johannes Berg <[email protected]>
- [RFC 2/4] firewire: dynamic cdev allocation below firewire major
- From: Johannes Berg <[email protected]>
- [RFC 1/4] firewire: node interface
- From: Johannes Berg <[email protected]>
- [RFC 4/4] firewire: add mem1394
- Prev by Date: Re: 2.6.16-rc1-mm4
- Next by Date: Re: Wanted: hotfixes for -mm kernels
- Previous by thread: [2.6 patch] let CDROM_PKTCDVD_WCACHE depend on EXPERIMENTAL
- Next by thread: [RFC 1/4] firewire: node interface
- Index(es):