Timeout on semaphores (in kernel context)

Timeout on semaphores (in kernel context)

Post by Eric Can » Wed, 29 Nov 2000 04:00:00


I'm devlopping a module, and I'd like to know if there is a down function
with a timeout. I know down and down_trylock in the kernel context, but
nothing handling timeouts. Is there a way to implement this or does
anybody know a patch that adds this functionnality ?




1. sleeping function called from illegal context (asm/semaphore.h)

Hi folks,

Booting into 2.5.40 (upto changeset 1.754) I found this in my logs:

Debug: sleeping function called from illegal context at
Call Trace:
 [<c01149e2>] E __might_sleep_Rd533bec7+0x52/0x2d3ad8
 [<c02b9765>] E usb_hub_tt_clear_buffer_Rbe74a884+0xf45/0xffffe690
 [<c02b9a00>] E usb_hub_tt_clear_buffer_Rbe74a884+0x11e0/0xffffe690
 [<c02b9a35>] E usb_hub_tt_clear_buffer_Rbe74a884+0x1215/0xffffe690
 [<c02b9a00>] E usb_hub_tt_clear_buffer_Rbe74a884+0x11e0/0xffffe690
 [<c01137b0>] E default_wake_function_Rfe478e92+0x0/0xa0
 [<c01054d9>] E enable_hlt_R9c7077bd+0x1c9/0x16960

I hope this is usefull info...

please CC me if you have questions as I'm not subscribed.

Kind regards,
Harm Verhagen

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Getting Linux

3. 2.5.38 semaphore.c calls sleeping function in illegal context

4. Whereis Floppy Boot Image?

5. pppd dial ins and , "LCP: timeout sending Config-Requests"

6. Looking for proctool for Solaris 2.4

7. semaphore timeout

8. copy multiple lines from a file

9. 2.5.49 - semaphore operations with timeouts

10. timeout a semaphore

11. timeout on semaphore

12. : Semaphore with Timeout?

13. timeout requirement for semaphores