Lines Matching refs:vma
33 static void relay_file_mmap_close(struct vm_area_struct *vma) in relay_file_mmap_close() argument
35 struct rchan_buf *buf = vma->vm_private_data; in relay_file_mmap_close()
36 buf->chan->cb->buf_unmapped(buf, vma->vm_file); in relay_file_mmap_close()
42 static int relay_buf_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in relay_buf_fault() argument
45 struct rchan_buf *buf = vma->vm_private_data; in relay_buf_fault()
99 static int relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma) in relay_mmap_buf() argument
101 unsigned long length = vma->vm_end - vma->vm_start; in relay_mmap_buf()
102 struct file *filp = vma->vm_file; in relay_mmap_buf()
110 vma->vm_ops = &relay_file_mmap_ops; in relay_mmap_buf()
111 vma->vm_flags |= VM_DONTEXPAND; in relay_mmap_buf()
112 vma->vm_private_data = buf; in relay_mmap_buf()
890 static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma) in relay_file_mmap() argument
893 return relay_mmap_buf(buf, vma); in relay_file_mmap()