cregit-Linux how code gets into the kernel

Release 4.7 drivers/staging/dgnc/dgnc_utils.c

#include <linux/tty.h>
#include <linux/sched.h>
#include "dgnc_utils.h"

/*
 * dgnc_ms_sleep()
 *
 * Put the driver to sleep for x ms's
 *
 * Returns 0 if timed out, !0 (showing signal) if interrupted by a signal.
 */

int dgnc_ms_sleep(ulong ms) { __set_current_state(TASK_INTERRUPTIBLE); schedule_timeout((ms * HZ) / 1000); return signal_pending(current); }

Contributors

PersonTokensPropCommitsCommitProp
konrad zapalowiczkonrad zapalowicz2790.00%150.00%
davidlohr buesodavidlohr bueso310.00%150.00%
Total30100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
konrad zapalowiczkonrad zapalowicz3792.50%150.00%
davidlohr buesodavidlohr bueso37.50%150.00%
Total40100.00%2100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}