cregit-Linux how code gets into the kernel

Release 4.15 drivers/staging/dgnc/dgnc_utils.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/tty.h>
#include <linux/sched/signal.h>
#include "dgnc_utils.h"

/**
 * dgnc_ms_sleep - Put the driver to sleep
 * @ms - milliseconds to sleep
 *
 * Return: 0 if timed out, if interrupted by a signal return signal.
 */

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

Contributors

PersonTokensPropCommitsCommitProp
Konrad Zapalowicz2790.00%150.00%
Davidlohr Bueso A310.00%150.00%
Total30100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Konrad Zapalowicz3585.37%120.00%
Davidlohr Bueso A37.32%120.00%
Greg Kroah-Hartman12.44%120.00%
Ingo Molnar12.44%120.00%
Tobin C Harding12.44%120.00%
Total41100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.