[PATCH 5/5] card insert / eject

Russell King rmk+pcmcia at arm.linux.org.uk
Tue May 18 21:32:23 BST 2004


On Tue, May 18, 2004 at 07:53:57PM +0100, Russell King wrote:
> returns a strange value on error.  Maybe we need to translate the "pcmcia
> error code" to something more appropriate, or (preferably) make it return
> a usual unix errno in the first place and translate _that_ to the "pcmcia
> error code" in ds.c ?

That said, echo foo > /sys/class/pcmcia_socket/pcmcia_socket0/card_eject
unfortunately doesn't complain - it appears 'echo' doesn't check the
return value from write(), so users have no idea if this actually worked
or not.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core



More information about the linux-pcmcia mailing list