]>
git.saurik.com Git - apple/libc.git/blob - mach.subproj/port_obj.c
6 * Define a service to map from a kernel-generated port name
7 * to server-defined "type" and "value" data to be associated
10 #include <mach/port_obj.h>
11 #include <mach/mach.h>
13 #define DEFAULT_TABLE_SIZE (64 * 1024)
15 struct port_obj_tentry
*port_obj_table
;
16 int port_obj_table_size
= DEFAULT_TABLE_SIZE
;
23 kr
= vm_allocate(mach_task_self(),
24 (vm_offset_t
*)&port_obj_table
,
25 (vm_size_t
)(maxsize
* sizeof (*port_obj_table
)),
27 if (kr
!= KERN_SUCCESS
)
28 panic("port_obj_init: can't vm_allocate");