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
111 * @pstore: structure for pstore
142 struct pstore_info pstore;
601 * @cxt: the context of pstore/zone
1125 .pstore = {
1319 * register_pstore_zone() - register to pstore/zone
1369 * if no @read, pstore may mount failed.
1370 * if no @write, pstore do not support to remove record file.
1401 cxt->pstore.bufsize = cxt->kpszs[0]->buffer_size -
1403 cxt->pstore.buf = kzalloc(cxt->pstore.bufsize, GFP_KERNEL);
1404 if (!cxt->pstore.buf) {
1409 cxt->pstore.data = cxt;
1412 cxt->pstore.max_reason = info->max_reason;
1413 cxt->pstore.name = info->name;
1415 cxt->pstore.flags |= PSTORE_FLAGS_DMESG;
1417 kmsg_dump_reason_str(cxt->pstore.max_reason));
1423 cxt->pstore.flags |= PSTORE_FLAGS_PMSG;
1427 cxt->pstore.flags |= PSTORE_FLAGS_CONSOLE;
1431 cxt->pstore.flags |= PSTORE_FLAGS_FTRACE;
1435 cxt->pstore.flags |= PSTORE_FLAGS_BLACKBOX;
1440 err = pstore_register(&cxt->pstore);
1442 pr_err("registering with pstore failed\n");
1450 kfree(cxt->pstore.buf);
1451 cxt->pstore.buf = NULL;
1452 cxt->pstore.bufsize = 0;
1462 * unregister_pstore_zone() - unregister to pstore/zone
1476 /* Stop incoming writes from pstore. */
1477 pstore_unregister(&cxt->pstore);
1484 kfree(cxt->pstore.buf);
1485 cxt->pstore.buf = NULL;
1486 cxt->pstore.bufsize = 0;
1504 MODULE_DESCRIPTION("Storage Manager for pstore/blk");