Re: realtime processes and CD-ROM

Ragnar Hojland Espinosa (
Tue, 26 Mar 2002 19:52:45 +0100

On Mon, Mar 25, 2002 at 05:25:50PM +0100, Frank Cornelis wrote:
> The MP3 player XMMS has the option of making it a realtime process.
> But even after doing so, the music sometimes blocks. This is when my CDROM
> is being accessed when it is not spinning anymore (spin-up time).
> Would it be very hard to reprogram the linux kernel in such a way that
> certain devices can't be turned off when realtime processes access these
> devices? These devices would include CDROM players, harddisks.
> Please note that I'm not looking for a way to (globally) disable the
> spinning off of my CDROM player when it's in use. Only when realtime
> processes access these devices the spinning of should be disabled.
> If anyone is programming on something like described above please let me
> know.

XMMS could have a flag to set spinning with CDROMSETSPINDOWN, which should
do what you are looking for.

____/| Ragnar Højland Freedom - Linux - OpenGL | Brainbench MVP
\ o.O| PGP94C4B2F0D27DE025BE2302C104B78C56 B72F0822 | for Unix Programming
=(_)= "Thou shalt not follow the NULL pointer for | (
U chaos and madness await thee at its end." [15 pend. Mar 10]
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at