Searched defs:phsizep (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c1143 caddr_t *phbasep, ssize_t *phsizep)
1164 *phsizep = nphdrs * ehdr->e_phentsize;
1166 if (*phsizep > sizeof (Phdr) * elf_nphdr_max) {
1167 if ((*phbasep = kmem_alloc(*phsizep, KM_NOSLEEP)) == NULL)
1170 *phbasep = kmem_alloc(*phsizep, KM_SLEEP);
1173 if ((err = vn_rdwr(UIO_READ, vp, *phbasep, *phsizep,
1176 kmem_free(*phbasep, *phsizep);
1142 getelfphdr(vnode_t *vp, cred_t *credp, const Ehdr *ehdr, int nphdrs, caddr_t *phbasep, ssize_t *phsizep) argument
/illumos-gate/usr/src/uts/common/os/
H A Dmmapobj.c1945 ssize_t phsizep; local
2027 phsizep = nphdrs * phentsize;
2029 if (phsizep == 0) {
2035 if (phsizep > mmapobj_alloc_threshold) {
2037 if ((phbasep = kmem_alloc(phsizep, KM_NOSLEEP)) == NULL) {
2042 phbasep = kmem_alloc(phsizep, KM_SLEEP);
2045 if ((error = vn_rdwr(UIO_READ, vp, phbasep, phsizep,
2048 kmem_free(phbasep, phsizep);
2055 kmem_free(phbasep, phsizep);

Completed in 53 milliseconds