2002-03-26 00:15:18

by Frank Cornelis

[permalink] [raw]
Subject: realtime processes and CD-ROM

Hey,

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.

Frank.

PS: CC me, 'cause I'm not on the mailing list.


2002-03-26 18:53:52

by Ragnar Hojland Espinosa

[permalink] [raw]
Subject: Re: realtime processes and CD-ROM

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 | (http://www.brainbench.com)
U chaos and madness await thee at its end." [15 pend. Mar 10]