(C) 1998 AROS - The Amiga Research OS


NAME

struct Process * FindProcess (tasknum , , )

LOCATION
In ArpBase at offset ?

SYNOPSIS
LONG tasknum
Process = FindProcess(tasknum
d0 d0

FUNCTION
This function returns the pointer to the process structure associated with tasknum. This is a pointer to the start of the process structure, usable with EXEC calls, and not the process value returned by DOS calls.

INPUTS
The CLI task number for the process, or special case ZERO, which returns the total number of process slots.

NOTE:  YOU MUST FORBID PRIOR TO CALLING THIS FUNCTION!

This function only makes sense when you are Forbidden, as otherwise the process may squirt away from you before you can use the result! Thus this function does NOT Forbid around a critical section. You have been warned!

RESULT
Process -- a pointer to a Process structure, or NULL. A NULL return indicates that there is no currently active process associated with that CLI task number.

( Except if tasknum was Zero )

EXAMPLE
SEE ALSO

NOTES

BUGS
None known.

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
28.03.1998 bergers
Some new functions.