Contents

IOIteratorNext(_:)

Returns the next object in an iteration.

Declaration

func IOIteratorNext(_ iterator: io_iterator_t) -> io_object_t

Parameters

  • iterator:

    An IOKit iterator handle.

Return Value

If the iterator handle is valid, the next element in the iteration is returned, otherwise zero is returned. The element should be released by the caller when it is finished.

Discussion

This function returns the next object in an iteration, or zero if no more remain or the iterator is invalid.

See Also

Miscellaneous