Subject: Re: checkentry function

From: Stephen Hemminger <[email-masked]>
Date: Tue, 5 Oct 2010 15:01:47 +0900

On Tue, 5 Oct 2010 07:52:39 +0200
Nicola Padovano <[email-masked]> wrote:

> > In current kernels, checkentry returns errno values.
> > 0 = okay
> > <0 is error (example -EINVAL).
> 0 = ok? and then you say 0 is error? which one?
> 

Negative (ie < 0) is used for error numbers. This is confusing
because in older kernels the checkentry returned a bool which
is defined as 1 okay and 0 for error.