lkml.org 
[lkml]   [1996]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From

One of the first things they teach programmers is that no matter
what code you write, you can't hurt the hardware. However, if I run the
following line of code while the plastic cover is closed on my computer:

void main(void) { ioctl(open("/dev/cdrom",0),0x5309,0); }

which causes my CDROM drive to eject, which is physically
impossible when the case slider is over it. The kernel reports the
following:

hdb : tray open or drive not ready
hdb : tray open or drive not ready
hdb: packet command error: status=0x51
hdb: packet command error: error=0x40
hdb: code: 0x70 key: 0x04 asc: 0xb6 ascq: 0x00

Not exactly the most logical way to report this error, is it?

DS



\
 
 \ /
  Last update: 2005-03-22 13:38    [W:1.260 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site