Finds a segment on the resident list
Source position: amigados.pas line 1641
function FindSegment( |
const name: pCHAR; |
const seg: pSegment; |
system: LongInt |
):pSegment; |
const name: string; |
const seg: pSegment; |
system: LongInt |
):pSegment; |
name |
|
Name of Segment to find |
seg |
|
Segment to start the search after |
system |
|
True for system segment. False for normal segments |
The Segment found or nil
name |
|
Name of Segment to find |
seg |
|
Segment to start the search after |
system |
|
True for system segment. False for normal segments |
Finds a segment on the Dos resident list by name and type, starting at the segment after 'start', or at the beginning if start is nil. If system is zero, it will only return nodes with a seg_UC of 0 or more. It does not increment the seg_UC, and it does not do any locking of the list. You must Forbid() lock the list to use this call.
To use an entry you have found, you must: if the seg_UC is 0 or more, increment it, and decrement it (under Forbid()!) when you're done the the seglist.
The other values for seg_UC are:
Negative values should never be modified. All other negative values between 0 and -32767 are reserved to AmigaDos and should not be used.
|
Adds a resident segment to the resident list |
|
|
Removes a resident segment from the resident list |
|
|
Forbid task scheduling. |