Re: [PATCH] *(int*)0 = 0 & variations

Manfred Spraul (masp0008@stud.uni-sb.de)
Thu, 24 Jun 1999 11:09:42 +0200 (CST)


Jeff wrote:
> Manfred Spraul wrote:
> > + kassert() identical to the normal user mode assert(). It _does not_ oops.
> Looking at /usr/include/assert.h verifies this. assert() always calls
> abort() and always has. It certainly makes sense to have an assert
> macro that does not abort, but it is incorrect to claim that the normal
> assert does not kill the program.
I was aware of that, this is why I underlined _does not_.

But it would be overdosed to call panic() on kassert(),
so kassert() is identical to assert() except that is does return.

I don't think that kassert() and kassertoops() are required:
kassert() should print all information that an oops would print, but
then it tries to continue. The worst thing that could happen is an
oops, so we win nothing by oopsing immediately.

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/