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
2444 static void copy_verf(struct nfs4_client *target, nfs4_verifier *source)
2446 memcpy(target->cl_verifier.data, source->data,
2450 static void copy_clid(struct nfs4_client *target, struct nfs4_client *source)
2452 target->cl_clientid.cl_boot = source->cl_clientid.cl_boot;
2453 target->cl_clientid.cl_id = source->cl_clientid.cl_id;
2456 static int copy_cred(struct svc_cred *target, struct svc_cred *source)
2458 target->cr_principal = kstrdup(source->cr_principal, GFP_KERNEL);
2459 target->cr_raw_principal = kstrdup(source->cr_raw_principal,
2461 target->cr_targ_princ = kstrdup(source->cr_targ_princ, GFP_KERNEL);
2462 if ((source->cr_principal && !target->cr_principal) ||
2463 (source->cr_raw_principal && !target->cr_raw_principal) ||
2464 (source->cr_targ_princ && !target->cr_targ_princ))
2467 target->cr_flavor = source->cr_flavor;
2468 target->cr_uid = source->cr_uid;
2469 target->cr_gid = source->cr_gid;
2470 target->cr_group_info = source->cr_group_info;
2472 target->cr_gss_mech = source->cr_gss_mech;
2473 if (source->cr_gss_mech)
2474 gss_mech_get(source->cr_gss_mech);