mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 00:07:27 +03:00
[process] Add process_running()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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" )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user