Lines Matching defs:name
25 * aa_split_fqname - split a fqname into a profile and namespace name
26 * @fqname: a full qualified name in namespace profile format (NOT NULL)
27 * @ns_name: pointer to portion of the string containing the ns name (NOT NULL)
29 * Returns: profile name or NULL if one is not specified
31 * Split a namespace name from a profile name (see policy.c for naming
32 * description). If a portion of the name is missing it returns NULL for
40 char *name = strim(fqname);
43 if (name[0] == ':') {
44 char *split = strchr(&name[1], ':');
45 *ns_name = skip_spaces(&name[1]);
51 name = skip_spaces(split);
53 /* a ns name without a following profile is allowed */
54 name = NULL;
56 if (name && *name == 0)
57 name = NULL;
59 return name;