inotify_read


Description:

[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( since = "1.0.66" ) ]
public INotifyEvent[] inotify_read () throws Error

return list of inotify events

Return the complete queue of events that have happened since the previous read call.

If no events have happened, this returns an empty list.

*Note*: In order to make sure that all events have been read, you must call this function repeatedly until it returns an empty list. The reason is that the call will read events up to the maximum appliance-to-host message size and leave remaining events in the queue.

This function depends on the feature "inotify". See also feature_available.

Parameters:

this

A GuestfsSession object

Returns:

an array of INotifyEvent objects, or NULL on error