standard for kernel version calculation?
Rob Landley
rob at landley.net
Thu Mar 30 01:52:20 UTC 2006
On Wednesday 29 March 2006 2:55 pm, Robert P. J. Day wrote:
> um ... would someone like to suggest a single standard for kernel
> version comparison? the (abridged) result of a recursive grep:
>
> if (get_kernel_revision() <= 2*65536+6*256)
> if (get_kernel_revision() < KRELEASE(2, 1, 0))
> if (get_kernel_revision() < MAKE_VERSION(2, 1, 117))
> if (get_kernel_revision() <= 66314
>
> i'm thinking that perhaps just one of these variations would be
> sufficient. :-)
It would be nice if anything that actually needed to care could be moved to
platform.h or platform.c somehow, but I doubt it's likely in the short
term...
> rday
>
> p.s. it's only *minimally* annoying that the funtion
> get_kernel_revision() is contained in the source file
> kernel_version.c. perhaps one of these things could be renamed to
> match the other? but i won't make a big issue of it.
Actually, _that_ should go in platform.c. :)
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list