Lines Matching refs:lmp

90 		Rt_map	*lmp = *_tobj;  in purge_exit_handlers()  local
92 num += MMAPCNT(lmp); in purge_exit_handlers()
111 Rt_map *lmp = *_tobj; in purge_exit_handlers() local
112 mmapobj_result_t *mpp = MMAPS(lmp); in purge_exit_handlers()
115 for (ndx = 0; ndx < MMAPCNT(lmp); ndx++, mpp++) { in purge_exit_handlers()
212 remove_so(Lm_list *lml, Rt_map *lmp, Rt_map *clmp) in remove_so() argument
216 if (lmp == NULL) in remove_so()
222 if (lml && lmp) in remove_so()
223 lm_delete(lml, lmp, clmp); in remove_so()
235 if (lml->lm_lcs[tag].lc_lmp == lmp) { in remove_so()
239 if (glcs[tag].lc_lmp == lmp) { in remove_so()
247 DBG_CALL(Dbg_file_delete(lmp)); in remove_so()
254 if (FLAGS(lmp) & FLG_RT_AUDIT) { in remove_so()
267 if (acp->ac_lmp != lmp) { in remove_so()
281 if (FLAGS(lmp) & FLG_RT_OBJECT) in remove_so()
287 if (FPNODE(lmp)) in remove_so()
288 fpavl_remove(lmp); in remove_so()
293 if (ALIAS(lmp)) in remove_so()
294 free(ALIAS(lmp)); in remove_so()
300 if (((dip = DYNINFO(lmp)) != NULL) && (FLAGS1(lmp) & MSK_RT_FILTER)) { in remove_so()
301 uint_t cnt, max = DYNINFOCNT(lmp); in remove_so()
315 if (RLIST(lmp)) in remove_so()
316 remove_alist(&RLIST(lmp), 1); in remove_so()
318 if (AUDITORS(lmp)) in remove_so()
319 audit_desc_cleanup(lmp); in remove_so()
320 if (AUDINFO(lmp)) in remove_so()
321 audit_info_cleanup(lmp); in remove_so()
329 if (COPY_R(lmp)) in remove_so()
330 free(COPY_R(lmp)); in remove_so()
339 if (GROUPS(lmp) != NULL) { in remove_so()
343 for (APLIST_TRAVERSE(GROUPS(lmp), idx1, ghp)) { in remove_so()
348 if (gdp->gd_depend != lmp) in remove_so()
355 free(GROUPS(lmp)); in remove_so()
357 if (HANDLES(lmp)) in remove_so()
358 free(HANDLES(lmp)); in remove_so()
368 if (cur->rl_lmp == lmp) { in remove_so()
394 if (FLAGS(lmp) & FLG_RT_IMGALLOC) in remove_so()
395 free((void *)ADDR(lmp)); in remove_so()
397 if (CAPCHAIN(lmp)) in remove_so()
398 free((void *)CAPCHAIN(lmp)); in remove_so()
400 if (MMAPS(lmp)) { in remove_so()
401 if ((FLAGS(lmp) & FLG_RT_IMGALLOC) == 0) in remove_so()
402 unmap_obj(MMAPS(lmp), MMAPCNT(lmp)); in remove_so()
403 free(MMAPS(lmp)); in remove_so()
406 free(lmp); in remove_so()
419 remove_lists(Rt_map *lmp, int lazy) in remove_lists() argument
427 for (APLIST_TRAVERSE(DEPENDS(lmp), idx1, bdp)) { in remove_lists()
436 if (DEPENDS(lmp)) { in remove_lists()
437 free(DEPENDS(lmp)); in remove_lists()
438 DEPENDS(lmp) = NULL; in remove_lists()
444 for (APLIST_TRAVERSE(CALLERS(lmp), idx1, bdp)) { in remove_lists()
464 if (dip->di_info == (void *)lmp) { in remove_lists()
476 if (CALLERS(lmp)) { in remove_lists()
477 free(CALLERS(lmp)); in remove_lists()
478 CALLERS(lmp) = NULL; in remove_lists()
510 Rt_map *lmp; in remove_incomplete() local
525 for (lmp = lmc->lc_head; lmp; lmp = NEXT_RT_MAP(lmp)) in remove_incomplete()
526 audit_objclose(lmp, clmp); in remove_incomplete()
532 for (lmp = lmc->lc_head; lmp; lmp = NEXT_RT_MAP(lmp)) in remove_incomplete()
533 remove_lists(lmp, 1); in remove_incomplete()
540 while ((lmp = lmc->lc_head) != NULL) in remove_incomplete()
541 remove_so(lml, lmp, clmp); in remove_incomplete()
550 is_deletable(APlist **lmalp, APlist **ghalp, Rt_map *lmp) in is_deletable() argument
562 if ((FLAGS(lmp) & FLG_RT_RELOCED) && in is_deletable()
563 (MODE(lmp) & RTLD_NODELETE) && (CNTL(lmp) == ALIST_OFF_DATA)) in is_deletable()
577 for (APLIST_TRAVERSE(HANDLES(lmp), idx, ghp)) { in is_deletable()
593 for (APLIST_TRAVERSE(CALLERS(lmp), idx, bdp)) { in is_deletable()
629 Rt_map *lmp = gdp->gd_depend; in gdp_collect() local
641 if ((action = aplist_test(lmalpp, lmp, AL_CNT_GRPCLCT)) == in gdp_collect()
661 if ((((FLAGS(lmp) & FLG_RT_RELOCED) == 0) || in gdp_collect()
662 (CNTL(lmp) != ALIST_OFF_DATA) || in gdp_collect()
663 ((MODE(lmp) & RTLD_NODELETE) == 0)) && in gdp_collect()
664 (FLAGS1(lmp) & MSK_RT_FILTER)) { in gdp_collect()
665 Dyninfo *dip = DYNINFO(lmp); in gdp_collect()
666 uint_t cnt, max = DYNINFOCNT(lmp); in gdp_collect()
704 Rt_map *lmp; in remove_rescan() local
707 for (APLIST_TRAVERSE(lmalp, idx1, lmp)) { in remove_rescan()
713 if (FLAGS(lmp) & FLG_RT_DELETE) in remove_rescan()
720 for (APLIST_TRAVERSE(DEPENDS(lmp), idx2, bdp)) { in remove_rescan()
735 if ((FLAGS1(lmp) & MSK_RT_FILTER) == 0) in remove_rescan()
738 dip = DYNINFO(lmp); in remove_rescan()
739 max = DYNINFOCNT(lmp); in remove_rescan()
809 Rt_map *lmp = gdp->gd_depend; in free_hdl() local
811 if (ghp->gh_ownlmp == lmp) in free_hdl()
812 (void) aplist_delete_value(HANDLES(lmp), ghp); in free_hdl()
813 (void) aplist_delete_value(GROUPS(lmp), ghp); in free_hdl()
856 Rt_map *lmp; in remove_lmc() local
874 lmp = lmc->lc_head; in remove_lmc()
875 if (HANDLES(lmp)) { in remove_lmc()
876 ghp = (Grp_hdl *)HANDLES(lmp)->apl_data[0]; in remove_lmc()
930 Rt_map *lmp = gdp->gd_depend; in remove_lmc() local
936 if ((FLAGS(lmp) & FLG_RT_RELOCED) == 0) in remove_lmc()
937 remove_lists(lmp, 1); in remove_lmc()
939 if (CNTL(lmp) == lmco) in remove_lmc()
943 Dyninfo *dip = DYNINFO(lmp); in remove_lmc()
944 uint_t cnt, max = DYNINFOCNT(lmp); in remove_lmc()
963 (void) aplist_delete_value(GROUPS(lmp), ghp); in remove_lmc()
1022 Rt_map *lmp; in remove_hdl() local
1085 lmp = gdp->gd_depend; in remove_hdl()
1087 if (FLAGS(lmp) & FLG_RT_DELETE) in remove_hdl()
1090 if (aplist_test(&lmalp, lmp, 0) == ALE_EXISTS) in remove_hdl()
1099 DBG_CALL(Dbg_file_hdl_collect(ghp, NAME(lmp))); in remove_hdl()
1127 for (APLIST_TRAVERSE(lmalp, idx1, lmp)) { in remove_hdl()
1133 lml = LIST(lmp); in remove_hdl()
1140 if (is_deletable(&lmalp, &ghalp, lmp)) { in remove_hdl()
1141 FLAGS(lmp) |= FLG_RT_DELETE; in remove_hdl()
1175 lmp = gdp->gd_depend; in remove_hdl()
1177 if (FLAGS(lmp) & FLG_RT_DELETE) in remove_hdl()
1180 for (APLIST_TRAVERSE(DEPENDS(lmp), idx3, bdp)) { in remove_hdl()
1198 if ((callable(lmp, dlmp, 0, 0) == 0) || in remove_hdl()
1199 callable(lmp, dlmp, ghp, 0)) in remove_hdl()
1243 lmp = gdp->gd_depend; in remove_hdl()
1251 if ((lmp == ghp->gh_ownlmp) && in remove_hdl()
1257 if (FLAGS(lmp) & FLG_RT_DELETE) { in remove_hdl()
1258 FLAGS(lmp) &= ~FLG_RT_DELETE; in remove_hdl()
1280 lmp = gdp->gd_depend; in remove_hdl()
1289 if ((FLAGS(lmp) & FLG_RT_DELETE) && in remove_hdl()
1300 if (FPNODE(lmp)) in remove_hdl()
1301 fpavl_remove(lmp); in remove_hdl()
1307 DBG_CALL(Dbg_file_hdl_action(ghp, lmp, flag, 0)); in remove_hdl()
1313 for (APLIST_TRAVERSE(HANDLES(lmp), idx3, ghp3)) { in remove_hdl()
1351 for (APLIST_TRAVERSE(lmalp, idx1, lmp)) { in remove_hdl()
1355 if (FLAGS(lmp) & FLG_RT_DELETE) in remove_hdl()
1356 remove_lists(lmp, 0); in remove_hdl()
1362 if ((FLAGS1(lmp) & MSK_RT_FILTER) == 0) in remove_hdl()
1365 dip = DYNINFO(lmp); in remove_hdl()
1366 max = DYNINFOCNT(lmp); in remove_hdl()
1405 if (FLAGS(lmp) & FLG_RT_DELETE) { in remove_hdl()
1407 lmp, lml); in remove_hdl()
1454 lmp = gdp->gd_depend; in remove_hdl()
1461 if (ghp->gh_ownlmp == lmp) { in remove_hdl()
1462 (void) aplist_delete_value(HANDLES(lmp), ghp); in remove_hdl()
1466 (void) aplist_delete_value(GROUPS(lmp), ghp); in remove_hdl()
1472 if ((FLAGS(lmp) & FLG_RT_DELETE) && in remove_hdl()
1474 tls_modaddrem(lmp, TM_FLG_MODREM); in remove_hdl()
1475 remove_so(LIST(lmp), lmp, clmp); in remove_hdl()