staticvoid *pi_start(struct seq_file *s, loff_t *pos)
{ /* * Make show() print the header line. Do not update *pos because * pi_next() still has to return the entry at index 0 later.
*/ if (*pos == 0) return SEQ_START_TOKEN;
return pi_next(s, NULL, pos);
}
/* * We need both ESCAPE_ANY and explicit characters from ESCAPE_SPECIAL in @only * because otherwise ESCAPE_NAP will cause double quotes and backslashes to be * ignored for quoting.
*/ #define seq_escape_printf_format(s, src) \
seq_escape_str(s, src, ESCAPE_ANY | ESCAPE_NAP | ESCAPE_APPEND, "\"\\")
if (flags & LOG_CONT) { /* * LOGLEVEL_DEFAULT here means "use the same level as the * message we're continuing from", not the default message * loglevel, so don't display it as such.
*/ if (level == LOGLEVEL_DEFAULT)
seq_puts(s, ""); else
seq_printf(s, "<%d,c>", level);
} else
seq_printf(s, "<%d>", level);
switch (op) { case MODULE_STATE_COMING:
pi_create_file(mod); break; case MODULE_STATE_GOING:
pi_remove_file(mod); break; default: /* we don't care about other module states */ break;
}
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.