Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

int nl_cache_mngr_data_ready ( struct nl_cache_mngr *  mngr  ) 

Receive available event notifications

  • mngr Cache manager
This function can be called if the socket associated to the manager contains updates to be received. This function should not be used if nl_cache_mngr_poll() is used.

Returns:
A positive value if at least one update was handled, 0 for none, or a negative error code.

Definition at line 345 of file cache_mngr.c.

References nl_recvmsgs_default().

Referenced by nl_cache_mngr_poll().

{
      int err;

      err = nl_recvmsgs_default(mngr->cm_handle);
      if (err < 0)
            return err;

      return 1;
}


Generated by  Doxygen 1.6.0   Back to index