Lines Matching refs:num_mapped
536 * num_mapped is the number of elements of mrp which have been mapped, and
540 * If num_mapped equals num_segs, then we know that we had fully mapped
545 * If e_type is passed in as zero, num_mapped must equal num_segs.
548 mmapobj_unmap(mmapobj_result_t *mrp, int num_mapped, int num_segs,
557 num_mapped = num_segs;
561 ASSERT(num_mapped == num_segs);
566 for (i = 0; i < num_mapped; i++) {
603 if (num_mapped != num_segs) {
606 if (num_mapped == 0) {
609 addr = mrp[num_mapped - 1].mr_addr +
610 mrp[num_mapped - 1].mr_msize;
620 * yet. If num_mapped == num_segs, then all of the holes
624 for (i = 1; i < num_mapped; i++) {
637 mmapobj_unmap_exec(mmapobj_result_t *mrp, int num_mapped, caddr_t start_addr)
641 for (i = 0; i < num_mapped; i++) {
644 mmapobj_unmap(mrp, num_mapped, num_mapped, ET_EXEC);
1550 vnode_t *vp, uint_t *num_mapped, size_t padding, cred_t *fcred)
1679 if (loadable > *num_mapped) {
1680 *num_mapped = loadable;
1924 *num_mapped = loadable;
1932 * num_mapped in - # elements in user buffer
1933 * num_mapped out - # sections mapped and length of mrp array if
1938 uint_t *num_mapped, size_t padding, cred_t *fcred)
1971 if (*num_mapped < to_map) {
1972 *num_mapped = to_map;
1978 *num_mapped = to_map;
2053 error = process_phdrs(ehdrp, phbasep, nphdrs, mrp, vp, num_mapped,
2072 uint_t *num_mapped, struct exec *hdr, cred_t *fcred)
2139 if (*num_mapped < to_map) {
2140 *num_mapped = to_map;
2292 *num_mapped = to_map;
2306 * num_mapped in - # elements in mrp
2307 * num_mapped out - # sections mapped and length of mrp array if
2314 uint_t *num_mapped, size_t padding, cred_t *fcred)
2357 if (*num_mapped < num_segs) {
2358 *num_mapped = num_segs;
2384 *num_mapped = num_segs;
2413 return (doelfwork((Ehdr *)lheader, vp, mrp, num_mapped,
2423 return (doaoutwork(vp, mrp, num_mapped,
2436 * *num_mapped will contain the size of the mmapobj_result_t array passed in.
2439 * If the mapping is successful, *num_mapped will contain the number of
2445 * *num_mapped mappings to be created and *num_mapped will be set to the
2450 uint_t *num_mapped, size_t padding, cred_t *fcred)
2457 ASSERT(num_mapped != NULL);
2462 if (*num_mapped < to_map) {
2463 *num_mapped = to_map;
2472 *num_mapped = to_map;
2476 error = mmapobj_map_interpret(vp, mrp, num_mapped, padding, fcred);