Lines Matching defs:gfp
124 struct aa_policydb *aa_alloc_pdb(gfp_t gfp)
126 struct aa_policydb *pdb = kzalloc(sizeof(struct aa_policydb), gfp);
260 struct aa_ruleset *aa_alloc_ruleset(gfp_t gfp)
264 rules = kzalloc(sizeof(*rules), gfp);
325 * @gfp: allocation type
330 gfp_t gfp)
338 profile = kzalloc(struct_size(profile, label.rules, 1), gfp);
342 if (!aa_policy_init(&profile->base, NULL, hname, gfp))
344 if (!aa_label_init(&profile->label, 1, gfp))
348 profile->label.rules[0] = aa_alloc_ruleset(gfp);
355 proxy = aa_alloc_proxy(&profile->label, gfp);
504 * @gfp: type of allocation.
513 gfp_t gfp)
530 gfp);
533 profile = aa_alloc_null(parent, name, gfp);
647 gfp_t gfp)
652 profile = aa_alloc_profile(name, NULL, gfp);
681 * @gfp: type of allocation
695 const char *base, gfp_t gfp)
705 gfp);
713 name = kmalloc(strlen(parent->base.hname) + 2 + 7 + 8, gfp);
726 profile = aa_alloc_null(parent, name, gfp);