Err DeleteItem( Item i )
Note: There are convenience procedures for deleting most types of items (such as DeleteMsg()
to delete a message and DeleteIOReq()
to delete an I/O request). You should use DeleteItem()
only if you used CreateItem()
to create the item. If you used a convenience routine to create an item, you must use the corresponding convenience routine to delete the item.
Tasks can only delete items that they own. If a task transfers ownership of an item to another task, it can no longer delete the item. The lone exception to this is the task itself. You can always commit sepaku.
When a task dies, the kernel automatically deletes all of the items in its resource table.
CheckItem
(), CreateItem(), DeleteIOReq(), DeleteMsg(), DeleteMsgPort(), DeleteThread(), exit()