Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Mar 2001 23:38:12 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_intr.c
Message-ID:  <Pine.BSF.4.21.0103022332480.11325-100000@besplex.bde.org>
In-Reply-To: <200103020607.f2267d865845@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 1 Mar 2001, John Baldwin wrote:

> jhb         2001/03/01 22:07:39 PST
> 
>   Modified files:
>     sys/kern             kern_intr.c 
>   Log:
>   Ok, the kernel will panic in kmem_malloc() if the kernel map is full, so
>   malloc with M_WAITOK can't actually return NULL.  I wish I could get two
>   people to give me the same answer about this when I ask...

Erm, this (non-returning of malloc with M_WAITOK) is clearly documented
in malloc.9.  The panic is an implementation detail so it should not
be documented.  Maybe we should have a Great Renaming for malloc() like
we did for mtx_enter() to get rid of the evil flags :-).

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103022332480.11325-100000>