Searched refs:heap (Results 1 - 25 of 73) sorted by relevance

123

/illumos-gate/usr/src/lib/smbsrv/libmlrpc/common/
H A Dndr_heap.c27 * NDR heap management. The heap is used for temporary storage by
29 * support the different requirements of the various RPCs, the heap
34 * that we actually need a lot heap space.
37 * allocated, it remains allocated until the heap is destroyed. This
38 * shouldn't be an issue because the heap is being filled with data to
40 * the point that the entire heap is no longer required.
54 * Allocate a heap structure and the first heap block. For many RPC
56 * in this instance of the heap
69 ndr_heap_t *heap; local
98 ndr_heap_destroy(ndr_heap_t *heap) argument
124 ndr_heap_malloc(ndr_heap_t *heap, unsigned size) argument
160 ndr_heap_strdup(ndr_heap_t *heap, const char *s) argument
184 ndr_heap_mstring(ndr_heap_t *heap, const char *s, ndr_mstring_t *out) argument
208 ndr_heap_mkvcs(ndr_heap_t *heap, char *s, ndr_vcstr_t *vc) argument
228 ndr_heap_mkvcb(ndr_heap_t *heap, uint8_t *data, uint32_t datalen, ndr_vcbuf_t *vcbuf) argument
256 ndr_heap_siddup(ndr_heap_t *heap, smb_sid_t *sid) argument
274 ndr_heap_used(ndr_heap_t *heap) argument
286 ndr_heap_avail(ndr_heap_t *heap) argument
[all...]
H A Dlibmlrpc.h94 * A heap is a single, monolithic chunk of memory that NDR RPC manages
96 * heap is disposed of as a single item. The transaction, which
98 * keeping for the heap.
326 * A number of heap areas are used during marshalling and unmarshalling.
334 * The heap management data definition looks a bit like this:
336 * heap -> +---------------+ +------------+
354 * of the first heap block.
414 #define NDR_MALLOC(XA, SZ) ndr_heap_malloc((XA)->heap, SZ)
415 #define NDR_NEW(XA, T) ndr_heap_malloc((XA)->heap, sizeof (T))
416 #define NDR_NEWN(XA, T, N) ndr_heap_malloc((XA)->heap, sizeo
430 ndr_heap_t *heap; member in struct:ndr_xa
457 ndr_heap_t *heap; member in struct:ndr_client
[all...]
/illumos-gate/usr/src/uts/intel/io/drm/
H A Dradeon_mem.c93 alloc_block(struct mem_block *heap, int size, int align2, drm_file_t *filp) argument
98 for (p = heap->next; p != heap; p = p->next) {
108 find_block(struct mem_block *heap, int start) argument
112 for (p = heap->next; p != heap; p = p->next)
126 * 'heap' to stop it being subsumed.
146 * Initialize. How to check for an uninitialized heap?
149 init_heap(struct mem_block **heap, int start, int size) argument
156 *heap
177 radeon_mem_release(drm_file_t *filp, struct mem_block *heap) argument
208 radeon_mem_takedown(struct mem_block **heap) argument
247 struct mem_block *block, **heap; local
303 struct mem_block *block, **heap; local
334 struct mem_block **heap; local
[all...]
H A Di915_mem.c142 static struct mem_block *alloc_block(struct mem_block *heap, int size, argument
148 for (p = heap->next; p != heap; p = p->next) {
157 static struct mem_block *find_block(struct mem_block *heap, int start) argument
161 for (p = heap->next; p != heap; p = p->next)
168 struct mem_block *find_block_by_proc(struct mem_block *heap, drm_file_t *fpriv) argument
172 for (p = heap->next; p != heap; p = p->next)
184 * 'heap' t
205 init_heap(struct mem_block **heap, int start, int size) argument
231 i915_mem_release(drm_device_t * dev, drm_file_t *fpriv, struct mem_block *heap) argument
261 i915_mem_takedown(struct mem_block **heap) argument
296 struct mem_block *block, **heap; local
345 struct mem_block *block, **heap; local
376 struct mem_block **heap; local
403 struct mem_block **heap; local
[all...]
/illumos-gate/usr/src/test/os-tests/tests/secflags/
H A Daddrs.c11 void *heap = NULL; local
14 if ((heap = malloc(10)) == NULL)
22 printf(" heap: 0x%p\n", heap);
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dheap.c29 static const char rcsid[] = "$Id: heap.c,v 1.4 2006/03/09 23:57:56 marka Exp $";
40 #include <isc/heap.h>
44 * element of the heap array is not used; i.e. heap subscripts are 1-based,
70 ctx->heap = NULL;
83 if (ctx->heap != NULL)
84 free(ctx->heap);
95 new_heap = (void **)realloc(ctx->heap,
101 ctx->heap = new_heap;
110 i > 1 && ctx->higher_priority(elt, ctx->heap[
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dcmdline.c123 enter_cmdline (char *heap, int forever) argument
140 *heap = 0;
145 if (get_cmdline (PACKAGE "> ", heap, 2048, 0, 1))
149 if (! heap[0])
153 builtin = find_command (heap);
173 arg = skip_to (1, heap);
185 run_script (char *script, char *heap) argument
227 grub_memmove (heap, old_entry, (int) cur_entry - (int) old_entry);
228 if (! *heap)
244 grub_memmove (heap, "boo
[all...]
H A Dstage2.c238 char *heap, int entryno)
536 ((int) heap) - ((int) cur_entry));
541 heap += 2;
552 ((int) heap) - ((int) ptr));
553 heap -= (((int) ptr) - ((int) cur_entry));
647 new_heap = heap;
655 new_heap = heap + NEW_HEAPSIZE + 1;
673 run_menu (heap, NULL, new_num_entries, new_heap, 0);
679 new_heap = heap + NEW_HEAPSIZE + 1;
703 (int) heap
237 run_menu(char *menu_entries, char *config_entries, int num_entries, char *heap, int entryno) argument
[all...]
/illumos-gate/usr/src/common/bzip2/
H A Dhuffman.c36 zz = z; tmp = heap[zz]; \
37 while (weight[tmp] < weight[heap[zz >> 1]]) { \
38 heap[zz] = heap[zz >> 1]; \
41 heap[zz] = tmp; \
47 zz = z; tmp = heap[zz]; \
52 weight[heap[yy+1]] < weight[heap[yy]]) \
54 if (weight[tmp] < weight[heap[yy]]) break; \
55 heap[z
75 Int32 heap [ BZ_MAX_ALPHA_SIZE + 2 ]; local
[all...]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dmlsvc_client.c186 if ((clnt->heap = ndr_heap_create()) == NULL) {
226 ndr_heap_destroy(clnt->heap);
241 * If the heap has been preserved we need to go through an xa release.
242 * The heap is preserved during an RPC call because that's where data
245 * Otherwise we destroy the heap directly.
256 ndr_heap_destroy(clnt->heap);
270 * ndr_rpc_release to release the heap. Otherwise, we release the
271 * heap here.
353 ndr_heap_t *heap; local
355 if ((heap
469 ndr_heap_t *heap = clnt->heap; local
[all...]
H A Dnetr_logon.c384 ndr_heap_t *heap; local
422 heap = ndr_rpc_get_heap(netr_handle);
426 netr_setup_identity(heap, user_info, &info1.identity);
437 netr_setup_identity(heap, user_info, &info2.identity);
438 netr_network_samlogon(heap, netr_info, user_info, &info2);
517 netr_network_samlogon(ndr_heap_t *heap, netr_info_t *netr_info, argument
531 ndr_heap_mkvcb(heap, user_info->lg_nt_password.val, len,
538 ndr_heap_mkvcb(heap, user_info->lg_lm_password.val, len,
671 netr_setup_identity(ndr_heap_t *heap, smb_logon_t *user_info, argument
698 ndr_heap_mkvcs(heap, user_inf
[all...]
/illumos-gate/usr/src/cmd/pack/
H A Dpack.c106 /* the heap */
108 struct heap { struct
111 } heap [END+2]; variable in typeref:struct:heap
222 /* makes a heap out of heap[i],...,heap[n] */
228 struct heap heapsubi;
229 hmove(heap[i], heapsubi);
233 if (heap[k].count > heap[
[all...]
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Dlibefi.c40 static EFI_PHYSICAL_ADDRESS heap; variable
78 BS->FreePages(heap, EFI_SIZE_TO_PAGES(heapsize));
107 heap = 0x0000000100000000;
109 EFI_SIZE_TO_PAGES(heapsize), &heap);
113 setheap((void *)(uintptr_t)heap, (void *)(uintptr_t)(heap + heapsize));
/illumos-gate/usr/src/lib/libresolv2/include/isc/
H A Dheap.h26 void **heap; member in struct:heap_context
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_name.c466 * The "buf" is used as a heap.
484 unsigned char *heap = buf; local
485 unsigned char *end_heap = heap + n_buf;
494 dnptrs[0] = heap;
497 BE_OUT16(heap, npb->name_trn_id);
498 heap += 2;
500 BE_OUT16(heap, npb->info);
501 heap += 2;
503 BE_OUT16(heap, npb->qdcount);
504 heap
672 unsigned char *heap; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstringf.c17 #include <sm/heap.h>
H A Dt-heap.c13 SM_IDSTR(id, "@(#)$Id: t-heap.c,v 1.8 2001/03/06 17:27:36 ca Exp $")
16 #include <sm/heap.h>
35 sm_test_begin(argc, argv, "test heap handling");
47 sm_dprintf("heap with 1 30-byte block allocated:\n");
54 sm_dprintf("heap with 0 blocks allocated:\n");
H A Dcf.c22 #include <sm/heap.h>
H A Dfpos.c22 #include <sm/heap.h>
H A Dstrdup.c16 #include <sm/heap.h>
143 ** group -- heap group
H A Dt-rpool.c16 #include <sm/heap.h>
63 sm_dprintf("heap after filling up rpool:\n");
67 sm_dprintf("heap after freeing rpool:\n");
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dcyclic.c132 cyclic_dump_node(cyc_cpu_t *cpu, cyc_index_t *heap, char **c, size_t w, argument
142 me = heap[ndx];
172 heap[heap_left]);
178 heap[heap_right]);
183 cyclic_dump_node(cpu, heap, c, w, heap_left, l, x, depth + 1);
186 cyclic_dump_node(cpu, heap, c, w, heap_right, x, r, depth + 1);
198 cyc_index_t *heap; local
201 heap = mdb_alloc(hsize, UM_SLEEP | UM_GC);
203 if (mdb_vread(heap, hsize, (uintptr_t)cpu->cyp_heap) == -1) {
204 mdb_warn("couldn't read heap a
253 cyc_index_t root, i, *heap; local
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dcallout.c46 static int callout_chunk; /* callout heap chunk size */
142 * the heap. However, we do not want to look at 1-nanosecond
228 * Macro to swap two heap items.
511 * Initialize a callout table's heap, if necessary. Preallocate some free
529 * Reallocate the heap. Return 0 if the heap is still full at the end of it.
530 * Return 1 otherwise. Note that the heap only expands, it never contracts.
536 callout_heap_t *heap; local
547 heap = kmem_alloc(size, KM_NOSLEEP);
550 if (heap
592 callout_heap_t *heap, *hcurrent, *hparent; local
673 callout_heap_t *heap, *hleft, *hright, *hcurrent; local
753 callout_heap_t *heap; local
861 callout_heap_t *heap; local
[all...]
/illumos-gate/usr/src/uts/common/zmod/
H A Dtrees.c92 * need for the L_CODES extra codes used during heap construction. However
427 /* Index within the heap array of least frequent node in the Huffman tree */
431 * Remove the smallest element from the heap and recreate the heap with
432 * one less element. Updates heap and heap_len.
436 top = s->heap[SMALLEST]; \
437 s->heap[SMALLEST] = s->heap[s->heap_len--]; \
450 * Restore the heap property by moving down the tree starting at node k,
452 * when the heap propert
[all...]
/illumos-gate/usr/src/boot/lib/libz/
H A Dtrees.c88 * need for the L_CODES extra codes used during heap construction. However
425 /* Index within the heap array of least frequent node in the Huffman tree */
429 * Remove the smallest element from the heap and recreate the heap with
430 * one less element. Updates heap and heap_len.
434 top = s->heap[SMALLEST]; \
435 s->heap[SMALLEST] = s->heap[s->heap_len--]; \
448 * Restore the heap property by moving down the tree starting at node k,
450 * when the heap propert
[all...]

Completed in 118 milliseconds

123