aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/nvme/nvme_util.c
Commit message (Collapse)AuthorAgeFilesLines
* nvme: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-1/+0
| | | | Notes: svn path=/head/; revision=365189
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Use _Static_assertWarner Losh2017-08-251-1/+0
| | | | | | | | | | | These files are compiled in userland too, so we can't use sys/systm.h and rely on CTASSERT. Switch to using _Static_assert instead. MFC After: 3 days Sponsored by: Netflix Notes: svn path=/head/; revision=322875
* Sanity check sizesWarner Losh2017-08-251-0/+1
| | | | | | | | Add compile time sanity checks to make sure that packed structures are the proper size, typically as defined in the NVMe standard. Notes: svn path=/head/; revision=322874
* Add message when nvd disks are attached and detached.Jim Harris2013-07-191-0/+61
As part of this commit, add an nvme_strvis() function which borrows heavily from cam_strvis(). This will allow stripping of leading/trailing whitespace and also handle unprintable characters in model/serial numbers. This function goes into a new nvme_util.c file which is used by both the driver and nvmecontrol. Sponsored by: Intel Reviewed by: carl MFC after: 3 days Notes: svn path=/head/; revision=253476