• Home
  • Raw
  • Download

Lines Matching refs:karg

1895 static int compat_nfs_svc_trans(struct nfsctl_arg *karg,  in compat_nfs_svc_trans()  argument
1899 get_user(karg->ca_version, &arg->ca32_version) || in compat_nfs_svc_trans()
1900 __get_user(karg->ca_svc.svc_port, &arg->ca32_svc.svc32_port) || in compat_nfs_svc_trans()
1901 __get_user(karg->ca_svc.svc_nthreads, in compat_nfs_svc_trans()
1907 static int compat_nfs_clnt_trans(struct nfsctl_arg *karg, in compat_nfs_clnt_trans() argument
1912 get_user(karg->ca_version, &arg->ca32_version) || in compat_nfs_clnt_trans()
1913 __copy_from_user(&karg->ca_client.cl_ident[0], in compat_nfs_clnt_trans()
1916 __get_user(karg->ca_client.cl_naddr, in compat_nfs_clnt_trans()
1918 __copy_from_user(&karg->ca_client.cl_addrlist[0], in compat_nfs_clnt_trans()
1921 __get_user(karg->ca_client.cl_fhkeytype, in compat_nfs_clnt_trans()
1923 __get_user(karg->ca_client.cl_fhkeylen, in compat_nfs_clnt_trans()
1925 __copy_from_user(&karg->ca_client.cl_fhkey[0], in compat_nfs_clnt_trans()
1933 static int compat_nfs_exp_trans(struct nfsctl_arg *karg, in compat_nfs_exp_trans() argument
1938 get_user(karg->ca_version, &arg->ca32_version) || in compat_nfs_exp_trans()
1939 __copy_from_user(&karg->ca_export.ex_client[0], in compat_nfs_exp_trans()
1942 __copy_from_user(&karg->ca_export.ex_path[0], in compat_nfs_exp_trans()
1945 __get_user(karg->ca_export.ex_dev, in compat_nfs_exp_trans()
1947 __get_user(karg->ca_export.ex_ino, in compat_nfs_exp_trans()
1949 __get_user(karg->ca_export.ex_flags, in compat_nfs_exp_trans()
1951 __get_user(karg->ca_export.ex_anon_uid, in compat_nfs_exp_trans()
1953 __get_user(karg->ca_export.ex_anon_gid, in compat_nfs_exp_trans()
1956 SET_UID(karg->ca_export.ex_anon_uid, karg->ca_export.ex_anon_uid); in compat_nfs_exp_trans()
1957 SET_GID(karg->ca_export.ex_anon_gid, karg->ca_export.ex_anon_gid); in compat_nfs_exp_trans()
1962 static int compat_nfs_getfd_trans(struct nfsctl_arg *karg, in compat_nfs_getfd_trans() argument
1967 get_user(karg->ca_version, &arg->ca32_version) || in compat_nfs_getfd_trans()
1968 __copy_from_user(&karg->ca_getfd.gd_addr, in compat_nfs_getfd_trans()
1971 __copy_from_user(&karg->ca_getfd.gd_path, in compat_nfs_getfd_trans()
1974 __get_user(karg->ca_getfd.gd_version, in compat_nfs_getfd_trans()
1981 static int compat_nfs_getfs_trans(struct nfsctl_arg *karg, in compat_nfs_getfs_trans() argument
1985 get_user(karg->ca_version, &arg->ca32_version) || in compat_nfs_getfs_trans()
1986 __copy_from_user(&karg->ca_getfs.gd_addr, in compat_nfs_getfs_trans()
1989 __copy_from_user(&karg->ca_getfs.gd_path, in compat_nfs_getfs_trans()
1992 __get_user(karg->ca_getfs.gd_maxlen, in compat_nfs_getfs_trans()
2016 struct nfsctl_arg *karg; in compat_sys_nfsservctl() local
2021 karg = kmalloc(sizeof(*karg), GFP_USER); in compat_sys_nfsservctl()
2023 if(!karg || !kres) { in compat_sys_nfsservctl()
2030 err = compat_nfs_svc_trans(karg, arg); in compat_sys_nfsservctl()
2034 err = compat_nfs_clnt_trans(karg, arg); in compat_sys_nfsservctl()
2038 err = compat_nfs_clnt_trans(karg, arg); in compat_sys_nfsservctl()
2043 err = compat_nfs_exp_trans(karg, arg); in compat_sys_nfsservctl()
2047 err = compat_nfs_getfd_trans(karg, arg); in compat_sys_nfsservctl()
2051 err = compat_nfs_getfs_trans(karg, arg); in compat_sys_nfsservctl()
2065 err = sys_nfsservctl(cmd, (void __user *) karg, (void __user *) kres); in compat_sys_nfsservctl()
2076 kfree(karg); in compat_sys_nfsservctl()