How to create an uninterruptible sleep in C? -
i'm looking create state of uninterruptible sleep program i'm writing. tips or ideas how create state helpful.
so far i've looked wait_event() function defined in wait.h, having little luck implementing it. when trying initialize wait queue compiler complained
warning: parameter names (without types) in function declaration static declare_wait_queue_head(wq);
has had experience wait_event() function or creating uninterruptible sleep?
the functions you're looking @ in include/linux/wait.h internal linux kernel. not available userspace.
generally speaking, uninterruptible sleep states considered undesirable. under normal circumstances, cannot triggered user applications except accident (e.g, attempting read storage device not responding correctly, or causing system swap).
Comments
Post a Comment