From dbb41ce2b7f309d394054a6bd1e33afd578798a5 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 23 Oct 2020 15:18:01 +0200 Subject: Move the source code of all xloop components to the common 'src' directory --- kernel/tests/include/tst_process_state.h | 53 -------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 kernel/tests/include/tst_process_state.h (limited to 'kernel/tests/include/tst_process_state.h') diff --git a/kernel/tests/include/tst_process_state.h b/kernel/tests/include/tst_process_state.h deleted file mode 100644 index c32aa58..0000000 --- a/kernel/tests/include/tst_process_state.h +++ /dev/null @@ -1,53 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later - * Copyright (C) 2012-2014 Cyril Hrubis chrubis@suse.cz - */ - - /* - - These functions helps you wait till a process with given pid changes state. - This is for example useful when you need to wait in parent until child - blocks. - - */ - -#ifndef TST_PROCESS_STATE__ -#define TST_PROCESS_STATE__ - -#include - -/* - * Waits for process state change. - * - * The state is one of the following: - * - * R - process is running - * S - process is sleeping - * D - process sleeping uninterruptibly - * Z - zombie process - * T - process is traced - */ -#ifdef TST_TEST_H__ - -#define TST_PROCESS_STATE_WAIT(pid, state, msec_timeout) \ - tst_process_state_wait(__FILE__, __LINE__, NULL, \ - (pid), (state), (msec_timeout)) -#else -/* - * The same as above but does not use tst_brkm() interface. - * - * This function is intended to be used from child processes. - * - * Returns zero on success, non-zero on failure. - */ -int tst_process_state_wait2(pid_t pid, const char state); - -# define TST_PROCESS_STATE_WAIT(cleanup_fn, pid, state) \ - tst_process_state_wait(__FILE__, __LINE__, (cleanup_fn), \ - (pid), (state), 0) -#endif - -int tst_process_state_wait(const char *file, const int lineno, - void (*cleanup_fn)(void), pid_t pid, - const char state, unsigned int msec_timeout); - -#endif /* TST_PROCESS_STATE__ */ -- cgit v1.2.3-55-g7522