Re: [Linuxptp-devel] [PATCHv5 04/12] rtnl: update function rtnl_link_status to get bond slave info
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2017-10-07 15:32:41
|
On Sat, Sep 30, 2017 at 04:25:12PM +0800, Hangbin Liu wrote: > @@ -39,12 +39,13 @@ int rtnl_link_query(int fd, char *device); > > /** > * Read kernel messages looking for a link up/down events. > - * @param fd Readable socket obtained via rtnl_open(). > - * @param cb Callback function to be invoked on each event. > - * @param ctx Private context passed to the callback. > - * @return Zero on success, non-zero otherwise. > + * @param fd Readable socket obtained via rtnl_open(). > + * @param device The device which we need to get link info. > + * @param cb Callback function to be invoked on each event. > + * @param ctx Private context passed to the callback. > + * @return A slave index, or -1 on error. The documentation of the return value is incorrect. Thanks, Richard |