Lines Matching +defs:code +defs:string
35 * which has a name (AA_NAME typecode followed by name string) followed by
46 AA_NAME, /* same as string except it is items name */
88 * @error: error code
137 static bool unpack_X(struct aa_ext *e, enum aa_code code)
141 if (*(u8 *) e->pos != code)
150 * @code: type code
158 * Returns 1 on success (both type code and name tests match) and the read
163 static bool unpack_nameX(struct aa_ext *e, enum aa_code code, const char *name)
184 /* now check if type code matches */
185 if (unpack_X(e, code))
249 static int unpack_str(struct aa_ext *e, const char **string, const char *name)
254 *string = NULL;
261 *string = src_str;
271 static int unpack_strdup(struct aa_ext *e, char **string, const char *name)
276 *string = NULL;
281 *string = kmemdup(tmp, res, GFP_KERNEL);
282 if (!*string) {