Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150080124
D26390.id77297.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
882 B
Referenced Files
None
Subscribers
None
D26390.id77297.diff
View Options
Index: head/sys/dev/nvme/nvme.h
===================================================================
--- head/sys/dev/nvme/nvme.h
+++ head/sys/dev/nvme/nvme.h
@@ -41,6 +41,7 @@
#define NVME_PASSTHROUGH_CMD _IOWR('n', 0, struct nvme_pt_command)
#define NVME_RESET_CONTROLLER _IO('n', 1)
#define NVME_GET_NSID _IOR('n', 2, struct nvme_get_nsid)
+#define NVME_GET_MAX_XFER_SIZE _IOR('n', 3, uint64_t)
#define NVME_IO_TEST _IOWR('n', 100, struct nvme_io_test)
#define NVME_BIO_TEST _IOWR('n', 101, struct nvme_io_test)
Index: head/sys/dev/nvme/nvme_ctrlr.c
===================================================================
--- head/sys/dev/nvme/nvme_ctrlr.c
+++ head/sys/dev/nvme/nvme_ctrlr.c
@@ -1345,6 +1345,9 @@
gnsid->nsid = 0;
break;
}
+ case NVME_GET_MAX_XFER_SIZE:
+ *(uint64_t *)arg = ctrlr->max_xfer_size;
+ break;
default:
return (ENOTTY);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 5:40 AM (5 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30575768
Default Alt Text
D26390.id77297.diff (882 B)
Attached To
Mode
D26390: Honor the FWUG value of some drives in nvmecontrol
Attached
Detach File
Event Timeline
Log In to Comment