• Home
  • Raw
  • Download

Lines Matching full:sfd

281 	struct shm_file_data *sfd = shm_file_data(file);  in __shm_open()  local
284 shp = shm_lock(sfd->ns, sfd->id); in __shm_open()
289 if (shp->shm_file != sfd->file) { in __shm_open()
368 struct shm_file_data *sfd = shm_file_data(file); in shm_close() local
370 struct ipc_namespace *ns = sfd->ns; in shm_close()
374 shp = shm_lock(ns, sfd->id); in shm_close()
527 struct shm_file_data *sfd = shm_file_data(file); in shm_fault() local
529 return sfd->vm_ops->fault(vmf); in shm_fault()
535 struct shm_file_data *sfd = shm_file_data(file); in shm_split() local
537 if (sfd->vm_ops->split) in shm_split()
538 return sfd->vm_ops->split(vma, addr); in shm_split()
546 struct shm_file_data *sfd = shm_file_data(file); in shm_pagesize() local
548 if (sfd->vm_ops->pagesize) in shm_pagesize()
549 return sfd->vm_ops->pagesize(vma); in shm_pagesize()
558 struct shm_file_data *sfd = shm_file_data(file); in shm_set_policy() local
561 if (sfd->vm_ops->set_policy) in shm_set_policy()
562 err = sfd->vm_ops->set_policy(vma, new); in shm_set_policy()
570 struct shm_file_data *sfd = shm_file_data(file); in shm_get_policy() local
573 if (sfd->vm_ops->get_policy) in shm_get_policy()
574 pol = sfd->vm_ops->get_policy(vma, addr); in shm_get_policy()
584 struct shm_file_data *sfd = shm_file_data(file); in shm_mmap() local
596 ret = call_mmap(sfd->file, vma); in shm_mmap()
601 sfd->vm_ops = vma->vm_ops; in shm_mmap()
603 WARN_ON(!sfd->vm_ops->fault); in shm_mmap()
611 struct shm_file_data *sfd = shm_file_data(file); in shm_release() local
613 put_ipc_ns(sfd->ns); in shm_release()
614 fput(sfd->file); in shm_release()
616 kfree(sfd); in shm_release()
622 struct shm_file_data *sfd = shm_file_data(file); in shm_fsync() local
624 if (!sfd->file->f_op->fsync) in shm_fsync()
626 return sfd->file->f_op->fsync(sfd->file, start, end, datasync); in shm_fsync()
632 struct shm_file_data *sfd = shm_file_data(file); in shm_fallocate() local
634 if (!sfd->file->f_op->fallocate) in shm_fallocate()
636 return sfd->file->f_op->fallocate(file, mode, offset, len); in shm_fallocate()
643 struct shm_file_data *sfd = shm_file_data(file); in shm_get_unmapped_area() local
645 return sfd->file->f_op->get_unmapped_area(sfd->file, addr, len, in shm_get_unmapped_area()
1527 struct shm_file_data *sfd; in do_shmat() local
1617 sfd = kzalloc(sizeof(*sfd), GFP_KERNEL); in do_shmat()
1618 if (!sfd) { in do_shmat()
1629 kfree(sfd); in do_shmat()
1634 sfd->id = shp->shm_perm.id; in do_shmat()
1635 sfd->ns = get_ipc_ns(ns); in do_shmat()
1636 sfd->file = base; in do_shmat()
1637 sfd->vm_ops = NULL; in do_shmat()
1638 file->private_data = sfd; in do_shmat()