Home
last modified time | relevance | path

Searched refs:phsizep (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Dmmapobj.c1931 ssize_t phsizep; in doelfwork() local
2013 phsizep = nphdrs * phentsize; in doelfwork()
2015 if (phsizep == 0) { in doelfwork()
2021 if (phsizep > mmapobj_alloc_threshold) { in doelfwork()
2023 if ((phbasep = kmem_alloc(phsizep, KM_NOSLEEP)) == NULL) { in doelfwork()
2028 phbasep = kmem_alloc(phsizep, KM_SLEEP); in doelfwork()
2031 if ((error = vn_rdwr(UIO_READ, vp, phbasep, phsizep, in doelfwork()
2034 kmem_free(phbasep, phsizep); in doelfwork()
2041 kmem_free(phbasep, phsizep); in doelfwork()
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c1194 caddr_t *phbasep, size_t *phsizep) in getelfphdr() argument
1205 *phsizep = nphdrs * ehdr->e_phentsize; in getelfphdr()
1207 if (*phsizep > sizeof (Phdr) * elf_nphdr_max) { in getelfphdr()
1208 if ((*phbasep = kmem_alloc(*phsizep, KM_NOSLEEP)) == NULL) in getelfphdr()
1211 *phbasep = kmem_alloc(*phsizep, KM_SLEEP); in getelfphdr()
1214 if ((err = vn_rdwr(UIO_READ, vp, *phbasep, (ssize_t)*phsizep, in getelfphdr()
1217 kmem_free(*phbasep, *phsizep); in getelfphdr()
1304 caddr_t *phbasep, size_t *phsizep) in elfreadhdr() argument
1312 phsizep)) != 0) { in elfreadhdr()