Finds an item by type and tags and opens it.
Item FindAndOpenItem( int32 cType, TagArg *tp ) Item FindAndOpenItemVA( int32 cType, uint32 tags, ... );
This procedure finds an item of the specified type whose tag arguments match those pointed to by the tp argument. If more than one item of the specified type has matching tag arguments, the procedure returns the item number for the first matching item. When an item is found, it is automatically opened and prepared for use.
The procedure returns the number of the first item that matches or an error code if it can't find the item or if an error occurs.The returned item is already opened, so there is no need to call OpenItem()
on it. You should call CloseItem()
on the supplied item when you are done with it.
SWI implemented in kernel folio V24.
To close an opened item, use CloseItem()
.
CheckItem
(), FindNamedItem(), FindVersionedItem(), LookupItem(), MkNodeID(), OpenItem(), FindItem()