Re: Doubt in CDROM Ejecting Program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sat, Nov 26, 2011 at 10:33 PM, Niamathullah sharief
<newbiesha@xxxxxxxxx> wrote:
> I am having code for ejecting CDROM in my Linux system. This is code
>
> CDROM is ejecting fine. ie its opening. But i don't know how to make my
> CDROM to close. Even if i run these program again its not closing. Can
> anyone help me..

if (ioctl(cdrom, CDROMCLOSETRAY) < 0) {
          printf("Could not close cdrom tray\n");
}

Regards.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux