Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1426057
| From | Jethro Beekman <kernel@jbeekman.nl> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] nvme: Add function for NVMe security receive command |
| Date | 2016-06-20 01:20 +0200 |
| Message-ID | <rLUat-pE-9@gated-at.bofh.it> (permalink) |
| References | <rLUat-pE-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Signed-off-by: Jethro Beekman <kernel@jbeekman.nl>
---
drivers/nvme/host/core.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 3a0d48c..da027ed 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -1377,6 +1377,18 @@ static void __nvme_scan_namespaces(struct nvme_ctrl *ctrl, unsigned nn)
}
}
+int nvme_security_recv(struct nvme_ctrl *dev, u8 protocol, void *buf,
+ unsigned int len)
+{
+ struct nvme_command c = { };
+
+ c.common.opcode = nvme_admin_security_recv;
+ c.common.cdw10[0] = cpu_to_le32(((u32)protocol)<<24);
+ c.common.cdw10[1] = cpu_to_le32(len);
+
+ return nvme_submit_sync_cmd(dev->admin_q, &c, buf, len);
+}
+
static bool nvme_security_is_locked(struct nvme_ctrl *ctrl,
struct nvme_id_ctrl *id)
{
--
2.9.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 2/3] nvme: Add function for NVMe security receive command Jethro Beekman <kernel@jbeekman.nl> - 2016-06-20 01:20 +0200
csiph-web