summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-04-22 20:39:53 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-04-22 20:39:53 +0200
commit4e8066a555118a5f71c9fa770dad81592b5fe2f4 (patch)
treedbcce02aecdafd5a1c991cedbff71dbbf683f4eb /ipc
parent07dc2f7b615f1b6af4acbbc034615856557ef7cd (diff)
Warn once when part of the kernel is lacking space
* ipc/ipc_entry.c (ipc_entry_get, ipc_entry_grow_table): Warn when returning KERN_NO_SPACE. * vm/vm_map.c (vm_map_find_entry, vm_map_enter, vm_map_copyout, vm_map_copyout_page_list): Warn when returning KERN_NO_SPACE.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_entry.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipc/ipc_entry.c b/ipc/ipc_entry.c
index 90844118..631de424 100644
--- a/ipc/ipc_entry.c
+++ b/ipc/ipc_entry.c
@@ -155,8 +155,10 @@ ipc_entry_get(space, namep, entryp)
table = space->is_table;
first_free = table->ie_next;
- if (first_free == 0)
+ if (first_free == 0) {
+ printf_once("no more room for ipc_entry_get in space %p\n", space);
return KERN_NO_SPACE;
+ }
free_entry = &table[first_free];
table->ie_next = free_entry->ie_next;
@@ -577,6 +579,7 @@ ipc_entry_grow_table(space)
if (osize == size) {
is_write_unlock(space);
+ printf_once("no more room for ipc_entry_grow_table in space %p\n", space);
return KERN_NO_SPACE;
}