[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: timer interrupt
On Thu, Jan 02, 2003 at 02:12:53PM +0100, Geert Fannes wrote:
> request_irq(0,stepper_isr,SA_SHIRQ,"stepper",&iNothing)
>
> fails and returns -16 (16 == EBUSY, 12 == ENOMEM, 22 == EINVAL, so i
> guess that the "-" characters in `man request_irq` in the return value
> section are really minus signs, and not some item indicators. i mean:
> can i interpret "-16" as being EBUSY?). i tried also using the flags
> SA_INTERRUPT|SA_SHIRQ, but it gave the same result, so i gues the timer
> interrupt cannot be shared using request_irq().
You're right, the '-' is normal minus sign according to the new policy of
indicating errors by returning values below 0.
--
tadeusz a. kadlubowski
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/