Lines Matching defs:source
8 * Redistribution and use in source and binary forms, with or without
12 * 1. Redistributions of source code must retain the above copyright
2167 static void copy_verf(struct nfs4_client *target, nfs4_verifier *source)
2169 memcpy(target->cl_verifier.data, source->data,
2173 static void copy_clid(struct nfs4_client *target, struct nfs4_client *source)
2175 target->cl_clientid.cl_boot = source->cl_clientid.cl_boot;
2176 target->cl_clientid.cl_id = source->cl_clientid.cl_id;
2179 static int copy_cred(struct svc_cred *target, struct svc_cred *source)
2181 target->cr_principal = kstrdup(source->cr_principal, GFP_KERNEL);
2182 target->cr_raw_principal = kstrdup(source->cr_raw_principal,
2184 target->cr_targ_princ = kstrdup(source->cr_targ_princ, GFP_KERNEL);
2185 if ((source->cr_principal && !target->cr_principal) ||
2186 (source->cr_raw_principal && !target->cr_raw_principal) ||
2187 (source->cr_targ_princ && !target->cr_targ_princ))
2190 target->cr_flavor = source->cr_flavor;
2191 target->cr_uid = source->cr_uid;
2192 target->cr_gid = source->cr_gid;
2193 target->cr_group_info = source->cr_group_info;
2195 target->cr_gss_mech = source->cr_gss_mech;
2196 if (source->cr_gss_mech)
2197 gss_mech_get(source->cr_gss_mech);