Re: Setjmp/Longjmp in the kernel?

Kasper Dupont (kasperd@daimi.au.dk)
Wed, 12 Feb 2003 11:55:32 +0100


Olaf Titz wrote:
>
> Not that this matters any bit, but the proper order is of course
> alloc this
> alloc that
> _foo_func()
> free that
> free this
>
> even if only for aesthetical reasons :-)
>
> (with locks, it does matter...)

For locks it is only when you lock the order matters, not when
you unlock. For allocations there is of course the possibility
that the first allocation suceeds and the second fails, which
you must handle in some way.

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/