[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] kerinfo availability?



Hello!

I am trying to update a XIF driver source code and am about to use the
kerinfo for the first time in my life. I was wondering - do I have to
check for mint version somehow before I am allowed to call the nf_ops
(if it's non-NULL, of course) of the kerinfo? Could there be an older
version of FreeMiNT or MiNT (MiNT is _now_ TOS or even older MiNT is
_not_ TOS) that would have too old and especially too short the kerinfo
struct?

There is a version number on the top of the kerinfo. All elements under the comment 'version 2 extension' are only valid if the version number is greater or equal 2. You should also check for a minimum of FreeMiNT 1.15 like all other xfs and xdd do:

if ((MINT_MAJOR == 0)
    || ((MINT_MAJOR == 1) && ((MINT_MINOR < 15) || (MINT_KVERSION < 2))))
{
	/* error */
	...
}


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnaumann@freemint.de