Lines Matching refs:mm
412 struct mm_struct *mm; member
443 curr_mm = info->mm; in task_vma_seq_get_next()
555 info->mm = curr_mm; in task_vma_seq_get_next()
564 info->mm = NULL; in task_vma_seq_get_next()
573 info->mm = NULL; in task_vma_seq_get_next()
645 mmap_read_unlock(info->mm); in task_vma_seq_stop()
646 mmput(info->mm); in task_vma_seq_stop()
647 info->mm = NULL; in task_vma_seq_stop()
757 struct mm_struct *mm; in BPF_CALL_5() local
766 mm = task->mm; in BPF_CALL_5()
767 if (!mm) in BPF_CALL_5()
772 if (irq_work_busy || !mmap_read_trylock(mm)) in BPF_CALL_5()
775 vma = find_vma(mm, start); in BPF_CALL_5()
782 bpf_mmap_unlock_mm(work, mm); in BPF_CALL_5()
799 struct mm_struct *mm; member
837 kit->data->mm = task->mm; in bpf_iter_task_vma_new()
838 if (!kit->data->mm) { in bpf_iter_task_vma_new()
845 if (irq_work_busy || !mmap_read_trylock(kit->data->mm)) { in bpf_iter_task_vma_new()
850 vma_iter_init(&kit->data->vmi, kit->data->mm, addr); in bpf_iter_task_vma_new()
876 bpf_mmap_unlock_mm(kit->data->work, kit->data->mm); in bpf_iter_task_vma_destroy()
1042 mmap_read_unlock_non_owner(work->mm); in do_mmap_read_unlock()