Lines Matching defs:lpc

268 		debug_high("list_walk_all lpc %d\n", (int)pid);
270 debug_high("list_walk_all aborted at lpc %d\n",
293 lprocess_t *lpc = (lprocess_t *)rfd->rfd_data;
295 if (lpc != NULL) {
296 debug("revoking psinfo fd for process %d\n", (int)lpc->lpc_pid);
297 ASSERT(lpc->lpc_psinfo_fd != -1);
298 lpc->lpc_psinfo_fd = -1;
316 int(*fd_update_cb)(void *, int), void *arg, lprocess_t *lpc)
336 revoke_psinfo, lpc, O_RDONLY, 0000)) < 0) {
398 lprocess_t *lpc = arg;
400 lpc->lpc_psinfo_fd = fd;
615 sweep_process_cb(lcollection_t *lcol, lprocess_t *lpc)
617 if (lpc->lpc_mark) {
618 lpc->lpc_mark = 0;
620 debug("process %d finished\n", (int)lpc->lpc_pid);
621 lprocess_free(lpc);
818 lprocess_free(lprocess_t *lpc)
822 lpc->lpc_collection->lcol_stat.lcols_proc_out++;
824 if (lpc->lpc_prev != NULL)
825 lpc->lpc_prev->lpc_next = lpc->lpc_next;
826 if (lpc->lpc_next != NULL)
827 lpc->lpc_next->lpc_prev = lpc->lpc_prev;
828 if (lpc->lpc_collection->lcol_lprocess == lpc)
829 lpc->lpc_collection->lcol_lprocess = (lpc->lpc_next !=
830 lpc ? lpc->lpc_next : NULL);
831 lpc->lpc_next = lpc->lpc_prev = NULL;
833 if (lpc->lpc_prpageheader != NULL)
834 free(lpc->lpc_prpageheader);
835 if (lpc->lpc_xmap != NULL)
836 free(lpc->lpc_xmap);
837 if (lpc->lpc_psinfo_fd >= 0) {
838 if (rfd_close(lpc->lpc_psinfo_fd) != 0)
840 (int)lpc->lpc_pid, lpc->lpc_psinfo_fd);
841 lpc->lpc_psinfo_fd = -1;
843 if (lpc->lpc_pgdata_fd >= 0) {
844 if (rfd_close(lpc->lpc_pgdata_fd) != 0)
846 (int)lpc->lpc_pid, lpc->lpc_pgdata_fd);
847 lpc->lpc_pgdata_fd = -1;
849 if (lpc->lpc_xmap_fd >= 0) {
850 if (rfd_close(lpc->lpc_xmap_fd) != 0)
852 (int)lpc->lpc_pid, lpc->lpc_xmap_fd);
853 lpc->lpc_xmap_fd = -1;
855 if (lpc->lpc_ignore != NULL)
856 lmapping_free(&lpc->lpc_ignore);
857 pid = lpc->lpc_pid;
858 free(lpc);