Lines Matching refs:pstore
3 * Provide a pstore intermediate backend, organized into kernel memory
90 * struct psz_context - all about running state of pstore/zone
109 * @pstore: structure for pstore
138 struct pstore_info pstore;
595 * @cxt: the context of pstore/zone
1102 .pstore = {
1285 * register_pstore_zone() - register to pstore/zone
1338 * if no @read, pstore may mount failed.
1339 * if no @write, pstore do not support to remove record file.
1369 cxt->pstore.bufsize = cxt->kpszs[0]->buffer_size -
1371 cxt->pstore.buf = kzalloc(cxt->pstore.bufsize, GFP_KERNEL);
1372 if (!cxt->pstore.buf) {
1377 cxt->pstore.data = cxt;
1380 cxt->pstore.max_reason = info->max_reason;
1381 cxt->pstore.name = info->name;
1383 cxt->pstore.flags |= PSTORE_FLAGS_DMESG;
1385 kmsg_dump_reason_str(cxt->pstore.max_reason));
1391 cxt->pstore.flags |= PSTORE_FLAGS_PMSG;
1395 cxt->pstore.flags |= PSTORE_FLAGS_CONSOLE;
1399 cxt->pstore.flags |= PSTORE_FLAGS_FTRACE;
1404 err = pstore_register(&cxt->pstore);
1406 pr_err("registering with pstore failed\n");
1414 kfree(cxt->pstore.buf);
1415 cxt->pstore.buf = NULL;
1416 cxt->pstore.bufsize = 0;
1426 * unregister_pstore_zone() - unregister to pstore/zone
1440 /* Stop incoming writes from pstore. */
1441 pstore_unregister(&cxt->pstore);
1448 kfree(cxt->pstore.buf);
1449 cxt->pstore.buf = NULL;
1450 cxt->pstore.bufsize = 0;
1468 MODULE_DESCRIPTION("Storage Manager for pstore/blk");