Lines Matching defs:gfp
60 struct aa_proxy *aa_alloc_proxy(struct aa_label *label, gfp_t gfp)
64 new = kzalloc(sizeof(struct aa_proxy), gfp);
396 bool aa_label_init(struct aa_label *label, int size, gfp_t gfp)
401 if (aa_alloc_secid(label, gfp) < 0)
416 * @gfp: memory allocation type
421 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp)
429 gfp);
434 if (!aa_label_init(new, size, gfp))
438 proxy = aa_alloc_proxy(new, gfp);
854 int len, gfp_t gfp)
872 new = aa_label_alloc(len, NULL, gfp);
888 gfp_t gfp)
895 return vec_create_and_insert_label(vec, len, gfp);
1209 * @gfp: memory allocation type
1219 gfp_t gfp)
1244 new = aa_label_alloc(a->size + b->size, NULL, gfp);
1437 * @gfp: type of memory allocation
1444 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp)
1457 if (aa_label_acntsxprint(&name, ns, label, FLAGS_NONE, gfp) < 0)
1682 * @gfp: kernel memory allocation type
1688 int flags, gfp_t gfp)
1699 *strp = kmalloc(size + 1, gfp);
1711 * @gfp: kernel memory allocation type
1717 struct aa_label *label, int flags, gfp_t gfp)
1728 *strp = aa_str_alloc(size + 1, gfp);
1736 struct aa_label *label, int flags, gfp_t gfp)
1747 len = aa_label_asxprint(&name, ns, label, flags, gfp);
1766 struct aa_label *label, int flags, gfp_t gfp)
1775 len = aa_label_asxprint(&str, ns, label, flags, gfp);
1790 gfp_t gfp)
1798 len = aa_label_asxprint(&str, ns, label, flags, gfp);
1812 void aa_label_audit(struct audit_buffer *ab, struct aa_label *label, gfp_t gfp)
1816 aa_label_xaudit(ab, ns, label, FLAG_VIEW_SUBNS, gfp);
1820 void aa_label_seq_print(struct seq_file *f, struct aa_label *label, gfp_t gfp)
1824 aa_label_seq_xprint(f, ns, label, FLAG_VIEW_SUBNS, gfp);
1828 void aa_label_printk(struct aa_label *label, gfp_t gfp)
1832 aa_label_xprintk(ns, label, FLAG_VIEW_SUBNS, gfp);
1878 * @gfp: allocation type
1886 size_t n, gfp_t gfp, bool create,
1912 error = vec_setup(profile, vec, len, gfp);
1951 label = aa_vec_find_or_create_label(vec, len, gfp);
1968 gfp_t gfp, bool create, bool force_stack)
1970 return aa_label_strn_parse(base, str, strlen(str), gfp, create,