FindTagArg

Looks through a tag list for a specific tag.

Synopsis

TagArg *FindTagArg( const TagArg *tagList, uint32 tag );

Description

This function scans a tag list looking for a TagArg structure with a ta_Tag field equal to the tag parameter. The function always returns the last TagArg structure in the list which matches the tag. Finally, this function deals with the various control tags such as TAG_JUMP and TAG_NOP.

Arguments

tagList
The list of tags to scan.
tag
The value to look for.

Return Value

This function returns a pointer to a TagArg structure with a value of ta_Tag that matches the tag parameter, or NULL if no match can be found. The function always returns the last tag in the list which matches.

Implementation

Folio call implemented in kernel folio V24.

Associated Files

tags.h

See Also

NextTagArg()