2 #include <linux/sched.h>
3 #include "dgnc_utils.h"
8 * Put the driver to sleep for x ms's
10 * Returns 0 if timed out, !0 (showing signal) if interrupted by a signal.
12 int dgnc_ms_sleep(ulong ms
)
14 __set_current_state(TASK_INTERRUPTIBLE
);
15 schedule_timeout((ms
* HZ
) / 1000);
16 return signal_pending(current
);
This page took 0.518637 seconds and 5 git commands to generate.