/* * The format used for transition tables is based on the GNU flex table * file format (--tables-file option; see Table File Format in the flex * info pages and the flex sources for documentation). The magic number * used in the header is 0x1B5E783D instead of 0xF13C57B1 though, because * new tables have been defined and others YY_ID_CHK (check) and YY_ID_DEF * (default) tables are used slightly differently (see the apparmor-parser * package). * * * The data in the packed dfa is stored in network byte order, and the tables * are arranged for flexibility. We convert the table data to host native * byte order. * * The dfa begins with a table set header, and is followed by the actual * tables.
*/
/* The YYTD_ID are one less than flex table mappings. The flex id * has 1 subtracted at table load time, this allows us to directly use the * ID's as indexes.
*/ #define YYTD_ID_ACCEPT 0 #define YYTD_ID_BASE 1 #define YYTD_ID_CHK 2 #define YYTD_ID_DEF 3 #define YYTD_ID_EC 4 #define YYTD_ID_META 5 #define YYTD_ID_ACCEPT2 6 #define YYTD_ID_NXT 7 #define YYTD_ID_TSIZE 8 #define YYTD_ID_MAX 8
/** * aa_get_dfa - increment refcount on dfa @p * @dfa: dfa (MAYBE NULL) * * Returns: pointer to @dfa if @dfa is NULL will return NULL * Requires: @dfa must be held with valid refcount when called
*/ staticinlinestruct aa_dfa *aa_get_dfa(struct aa_dfa *dfa)
{ if (dfa)
kref_get(&(dfa->count));
return dfa;
}
/** * aa_put_dfa - put a dfa refcount * @dfa: dfa to put refcount (MAYBE NULL) * * Requires: if @dfa != NULL that a valid refcount be held
*/ staticinlinevoid aa_put_dfa(struct aa_dfa *dfa)
{ if (dfa)
kref_put(&dfa->count, aa_dfa_free_kref);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.