Is there a source code for eject command ? Did u do "strace eject" and check the output, though that will give u only system calls info. Run ldd on eject check which library it is linked to and then also do "nm command" on "eject" on that library to find the corresponding API. -vikas -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -----Original Message----- From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Yu Wang Sent: Sunday, June 26, 2005 11:54 PM To: kernelnewbies@xxxxxxxxxxxx Subject: Programing the [Eject] button on CD-ROM Hi, I am currently writting a little program, which needs to use the [Eject] button on the CD-ROM. So I am just wondering if there is an API related? Any help is greatly appreciated! Yu -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/