[process] Add process_running()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2010-08-25 11:17:13 +01:00
parent da123eada4
commit 25447294d5
2 changed files with 13 additions and 2 deletions

View File

@@ -66,6 +66,17 @@ process_init ( struct process *process,
process_add ( process );
}
/**
* Check if process is running
*
* @v process Process
* @ret running Process is running
*/
static inline __attribute__ (( always_inline )) int
process_running ( struct process *process ) {
return ( ! list_empty ( &process->list ) );
}
/** Permanent process table */
#define PERMANENT_PROCESSES __table ( struct process, "processes" )