ot::LinkedList::Find() method
Searches within the linked list to find an entry and if found returns a pointer to previous entry.
Arguments
aEntry
A reference to an entry to find.
aPrevEntry
A pointer to output the previous entry on success (when @p aEntry is found in the list). @p aPrevEntry is set to `nullptr` if @p aEntry is the head of the list. Otherwise it is updated to point to the previous entry before @p aEntry in the list.
Return value
kErrorNone The entry was found in the list and @p aPrevEntry was updated successfully. kErrorNotFound The entry was not found in the list.