mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Back out previous commit due to objections.
This commit is contained in:
parent
3e704d0bb7
commit
497ddd5807
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125889
@ -164,17 +164,16 @@ is required when running in an interrupt context.
|
||||
Indicates that it is OK to wait for resources.
|
||||
If the request cannot be immediately fulfilled, the current process is put
|
||||
to sleep to wait for resources to be released by other processes.
|
||||
When
|
||||
.Dv M_WAITOK
|
||||
is specified, the
|
||||
The
|
||||
.Fn malloc ,
|
||||
.Fn realloc ,
|
||||
and
|
||||
.Fn reallocf
|
||||
cannot return
|
||||
functions cannot return
|
||||
.Dv NULL
|
||||
unless the requested allocation size is too large for the kernel
|
||||
memory map.
|
||||
if
|
||||
.Dv M_WAITOK
|
||||
is specified.
|
||||
.It Dv M_USE_RESERVE
|
||||
Indicates that the system can dig into its reserve in order to obtain the
|
||||
requested memory.
|
||||
|
@ -336,11 +336,9 @@ kmem_malloc(map, size, flags)
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
#if 0
|
||||
if ((flags & M_NOWAIT) == 0)
|
||||
panic("kmem_malloc(%ld): kmem_map too small: %ld total allocated",
|
||||
(long)size, (long)map->size);
|
||||
#endif
|
||||
return (0);
|
||||
}
|
||||
offset = addr - VM_MIN_KERNEL_ADDRESS;
|
||||
|
Loading…
Reference in New Issue
Block a user