Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

FindSegmentTagList

Search for a resident segment by name and type.

Declaration

Source position: amigados.pas line 2288

function FindSegmentTagList(

  tags: Pointer

):PSegment;

Function result

Will return the segment structure if a match is found, otherwise will return nil.

Description

Search for a resident segment by name and type. FindSegmentTagList() will return the first segment that exactly matches the name and type.

You can continue searching by specifying the last returned segment as the seg argument.

Attention

FindSegmentTagList() does no locking of the segment list. You should lock yourself. FindSegmentTagList() also does not increment the value of the seg_UC field. If the value of seg_UC > 0, you must perform user counting in order to prevent the segment from being unloaded.

See also

AddSegment

  

Adds a resident segment to the resident list

FindSegment

  

Finds a segment on the resident list

RemSegment

  

Removes a resident segment from the resident list


Documentation generated on: 2021-07-30