// SPDX-License-Identifier: GPL-2.0 /* * fault injection support for nvme. * * Copyright (c) 2018, Oracle and/or its affiliates */ #include <linux/moduleparam.h> #include "nvme.h" static DECLARE_FAULT_ATTR(fail_default_attr); /* optional fault injection attributes boot time option: * nvme_core.fail_request=<interval>,<probability>,<space>,<times> */ static char *fail_request; module_param(fail_request, charp, 0000); void nvme_fault_inject_init(struct nvme_fault_inject *fault_inj, const char *dev_name) { … } void nvme_fault_inject_fini(struct nvme_fault_inject *fault_inject) { … } void nvme_should_fail(struct request *req) { … } EXPORT_SYMBOL_GPL(…);