/illumos-gate/usr/src/cmd/lvm/rpc.metamedd/ |
H A D | med_mem.c | 51 void *mem; local 53 if ((mem = malloc(s)) == NULL) { 57 return (mem);
|
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/ |
H A D | mhd_mem.c | 45 void *mem; local 47 if ((mem = malloc(s)) == NULL) { 51 return (mem);
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_util.c | 57 inj_mem2item(inj_memtype_t mem) argument 59 switch (mem) { 74 inj_mem2str(inj_memtype_t mem) argument 84 return (mem >= 0 && 85 mem < sizeof (names) / sizeof (char *) ? names[mem] : "???");
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetgr.c | 37 char **mem; local 50 mem = grp ->gr_mem; 52 if (mem != NULL) { 53 if (*mem != NULL) 54 if (fputs(*mem++, fp) == EOF) 57 while (*mem != NULL) 58 if (fprintf(fp, ",%s", *mem++) == EOF)
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | t-memstat.c | 84 char *mem; local 102 mem = malloc(sz); 103 if (NULL == mem)
|
/illumos-gate/usr/src/tools/ctf/common/ |
H A D | memory.c | 49 void *mem; local 51 if ((mem = malloc(size)) == NULL) 54 return (mem); 60 void *mem; local 62 mem = xmalloc(size); 63 bzero(mem, size); 65 return (mem); 96 void *mem; local 98 if ((mem = realloc(ptr, size)) == NULL) 101 return (mem); [all...] |
/illumos-gate/usr/src/boot/sys/boot/i386/loader/ |
H A D | chain.c | 47 vm_offset_t mem = 0x100000; local 87 if (archsw.arch_readin(fd, mem, size) != size) { 95 *((uint16_t *)PTOV(mem + DOSMAGICOFFSET)) != DOSMAGIC) { 100 uintptr[0] = mem;
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_mem.c | 71 void *mem; local 73 mem = debug_malloc(file, line, s); 74 if (mem == NULL) { 78 return (mem); 88 void *mem; local 90 if ((mem = malloc(s)) == NULL) { 94 return (mem);
|
/illumos-gate/usr/src/cmd/getdevpolicy/ |
H A D | getdevpolicy.c | 80 char *mem = NULL; local 85 if (modctl(MODGETDEVPOLICY, &nitems, sz, mem) == 0 || errno != ENOMEM) 88 mem = malloc(nitems * sz); 89 if (mem == NULL) 92 if (modctl(MODGETDEVPOLICY, &nitems, sz, mem) != 0) 97 ds = (devplcysys_t *)(mem + i * sz);
|
/illumos-gate/usr/src/tools/mbh_patch/ |
H A D | mbh_patch.c | 59 int ndx, mem; local 90 for (mem = 0; mem < 8192 - sizeof (multiboot_header_t); mem += 4) { 91 mbh = ELFSEEK(mem); 96 if (mem >= 8192 - sizeof (multiboot_header_t)) { 126 if ((mem < phdr->p_offset) || 127 (mem >= (phdr->p_offset + phdr->p_filesz))) { 144 mbh->header_addr = mbh->load_addr + mem;
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | pathdup.c | 51 char mem[MEMSIZ]; member in struct:dup 124 pt = &tail->mem[MEMSIZ-size]; 150 pt = &tail->mem[MEMSIZ-size];
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | freelist.c | 377 char *mem = block->nodes; local 379 for(i=0; i<fl->blocking_factor - 1; i++, mem += fl->node_size) 380 *(void **)mem = mem + fl->node_size; /* Link to the next node */ 381 *(void **)mem = NULL; /* Terminate the list */
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devpolicy.c | 154 char *mem = NULL; local 175 mem = realloc(mem, nalloc * devplcysys_sz); 176 if (mem == NULL) { 185 dflt = (devplcysys_t *)mem; 193 dp = (devplcysys_t *)(mem + devplcysys_sz * cnt); 263 qsort(mem, cnt, devplcysys_sz, qcmp); 265 if ((res = modctl(MODSETDEVPOLICY, cnt, devplcysys_sz, mem)) != 0)
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | ar.c | 274 register char *mem; local 289 mem = (char *)a + sizeof (struct ar_hdr); 291 if ((end - mem < n) || (a->ar_name[0] != '/') || 296 hdr = mem + sz; 298 elf->ed_arsym = mem; 305 if (_elf_vm(elf, (size_t)(mem - elf->ed_ident), 314 (void) memcpy(nmem, mem, sz); 316 mem = nmem; 319 elf->ed_arstr = mem; 323 if (*mem [all...] |
/illumos-gate/usr/src/uts/common/io/bpf/ |
H A D | bpf_filter.c | 144 uint32_t mem[BPF_MEMWORDS]; local 326 A = mem[pc->k]; 330 X = mem[pc->k]; 334 mem[pc->k] = A; 338 mem[pc->k] = X;
|
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | getgrent.c | 193 char **mem; local 198 for (mem = g->gr_mem; *mem != 0; mem++) { 199 if (strcmp(*mem, argp->username) == 0) {
|
/illumos-gate/usr/src/lib/scsi/libsmp/common/ |
H A D | smp_subr.c | 149 void *mem; local 156 if ((mem = malloc(size)) == NULL) 159 return (mem); 165 void *mem; local 167 if ((mem = smp_alloc(size)) == NULL) 170 bzero(mem, size); 172 return (mem);
|
/illumos-gate/usr/src/cmd/fm/schemes/mem/ |
H A D | mem.h | 38 * FMRI plugin for the `mem' scheme. 40 * The mem scheme can be used to name individual memory modules, as well as 75 * entry points: (see mem.c) 87 * - present: Given a mem-schemed FMRI with a serial number, this entry 141 typedef struct mem { struct 160 extern mem_t mem;
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctprc.c | 71 unsigned long mem; local 89 mem = expand(ab.ac_mem); 99 pb.pt_mem = (mem + stime - 1) / stime;
|
/illumos-gate/usr/src/tools/ndrgen/ |
H A D | ndr_gen.c | 105 ndr_member_t *mem; local 117 mem = &ti->member[i]; 118 if (mem->type->type_op != BASIC_TYPE) 121 generate_member(ti, mem); 127 mem = &ti->member[i]; 128 if (mem->type->type_op == BASIC_TYPE) 131 if (mem->type->has_pointers) 134 generate_member(ti, mem); 140 mem = &ti->member[i]; 141 if (mem 157 ndr_member_t *mem; local 175 ndr_member_t *mem; local 247 generate_member_macro(char *memkind, char *macro, ndr_member_t *mem, ndr_typeinfo_t *ti) argument 269 generate_member_macro_with_arg(char *memkind, char *macro, ndr_member_t *mem, ndr_typeinfo_t *ti, ndr_node_t *np) argument 297 ndr_member_t *mem; local 310 generate_member_prototypes(ndr_typeinfo_t *ti, ndr_member_t *mem, char *fname_type) argument 329 generate_member(ndr_typeinfo_t *ti, ndr_member_t *mem) argument [all...] |
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | graphics.c | 73 uchar_t *mem, *ptr; local 76 mem = (uchar_t *)videomem + offset; 81 ptr = mem + j * 80;
|
/illumos-gate/usr/src/uts/common/io/i40e/core/ |
H A D | i40e_hmc.c | 62 struct i40e_dma_mem mem; local 88 ret_code = i40e_allocate_dma_mem(hw, &mem, mem_type, alloc_len, 103 &mem, sizeof(struct i40e_dma_mem), 107 &mem, sizeof(struct i40e_dma_mem), 123 i40e_free_dma_mem(hw, &mem); 153 struct i40e_dma_mem mem; local 154 struct i40e_dma_mem *page = &mem;
|
/illumos-gate/usr/src/uts/common/io/i40e/ |
H A D | i40e_osdep.c | 26 i40e_allocate_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem, u32 size) argument 28 mem->va = kmem_zalloc(size, KM_SLEEP); 29 mem->size = size; 35 i40e_free_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem) argument 37 if (mem->va != NULL) 38 kmem_free(mem->va, mem->size); 44 i40e_allocate_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem, argument 62 mem->idm_alignment = alignment; 64 DDI_DMA_DONTWAIT, NULL, &mem 137 i40e_free_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem) argument [all...] |
/illumos-gate/usr/src/lib/scsi/libscsi/common/ |
H A D | scsi_subr.c | 146 void *mem; local 153 if ((mem = malloc(size)) == NULL) 156 return (mem); 162 void *mem; local 164 if ((mem = libscsi_alloc(hp, size)) == NULL) 167 bzero(mem, size); 169 return (mem);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/dimm/ |
H A D | dimm_sun4v.c | 72 md_mem_info_t *mem; local 76 topo_mod_dprintf(mod, "initializing mem enumerator\n"); 78 if ((mem = topo_mod_zalloc(mod, sizeof (md_mem_info_t))) == NULL) 81 if (mem_mdesc_init(mod, mem) != 0) { 83 topo_mod_free(mod, mem, sizeof (md_mem_info_t)); 87 topo_mod_setspecific(mod, (void *)mem); 92 mem_mdesc_fini(mod, mem); 93 topo_mod_free(mod, mem, sizeof (md_mem_info_t)); 97 topo_mod_dprintf(mod, "mem enumerator inited\n"); 105 md_mem_info_t *mem; local 409 md_mem_info_t *mem = (md_mem_info_t *)arg; local [all...] |