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
2299 static void copy_verf(struct nfs4_client *target, nfs4_verifier *source)
2301 memcpy(target->cl_verifier.data, source->data,
2305 static void copy_clid(struct nfs4_client *target, struct nfs4_client *source)
2307 target->cl_clientid.cl_boot = source->cl_clientid.cl_boot;
2308 target->cl_clientid.cl_id = source->cl_clientid.cl_id;
2311 static int copy_cred(struct svc_cred *target, struct svc_cred *source)
2313 target->cr_principal = kstrdup(source->cr_principal, GFP_KERNEL);
2314 target->cr_raw_principal = kstrdup(source->cr_raw_principal,
2316 target->cr_targ_princ = kstrdup(source->cr_targ_princ, GFP_KERNEL);
2317 if ((source->cr_principal && !target->cr_principal) ||
2318 (source->cr_raw_principal && !target->cr_raw_principal) ||
2319 (source->cr_targ_princ && !target->cr_targ_princ))
2322 target->cr_flavor = source->cr_flavor;
2323 target->cr_uid = source->cr_uid;
2324 target->cr_gid = source->cr_gid;
2325 target->cr_group_info = source->cr_group_info;
2327 target->cr_gss_mech = source->cr_gss_mech;
2328 if (source->cr_gss_mech)
2329 gss_mech_get(source->cr_gss_mech);