/* * If read and write race, the read will still atomically read a valid * value.
*/ int uml_exitcode = 0;
staticint exitcode_proc_show(struct seq_file *m, void *v)
{ int val;
/* * Save uml_exitcode in a local so that we don't need to guarantee * that sprintf accesses it atomically.
*/
val = uml_exitcode;
seq_printf(m, "%d\n", val); return 0;
}
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.