Skip to content

Commit 2f52a76

Browse files
authored
Merge pull request #380 from igaw/add-kernel-dep-note
README: add note about min kernel version
2 parents db4aa1f + 1d2271d commit 2f52a76

3 files changed

Lines changed: 52 additions & 17 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ please consult the following sites:
5757

5858
**meson repo**: https://github.com/mesonbuild/meson
5959

60+
## Dependency
61+
62+
libnvme depends on minimum Linux kernel version v4.15, which
63+
introduced the /sys/class/nvme-subsystem.
64+
6065
## Prerequisite
6166

6267
First, install meson.

doc/index.rst.in

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
Welcome to libnvme's documentation!
22
===================================
33

4+
This is the libnvme development C library. libnvme provides type definitions for
5+
NVMe specification structures, enumerations, and bit fields,
6+
helper functions to construct, dispatch, and decode commands and payloads,
7+
and utilities to connect, scan, and manage nvme devices on a Linux system.
8+
49
.. toctree::
510
:maxdepth: 2
611
:caption: Contents:
712

8-
.. include:: rst/types.rst
9-
.. include:: rst/ioctl.rst
10-
.. include:: rst/fabrics.rst
11-
.. include:: rst/linux.rst
12-
.. include:: rst/tree.rst
13-
.. include:: rst/filters.rst
14-
.. include:: rst/util.rst
15-
.. include:: rst/log.rst
16-
13+
installation.rst
14+
quickstart.rst
15+
api.rst
1716

1817
Indices and tables
1918
==================

doc/installation.rst.in

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,52 @@
11
Installation
22
============
33

4-
Python Version
4+
Debian / Ubuntu:
5+
----------------
6+
7+
.. code-block:: sh
8+
9+
$ apt-get install libnvme
10+
11+
Fedora / Red Hat:
12+
-----------------
13+
14+
.. code-block:: sh
15+
16+
$ dnf install libnvme
17+
18+
Python binding
519
--------------
620

7-
tbd
21+
Python Version
22+
^^^^^^^^^^^^^^
23+
24+
The latest Python 3 version is always recommended, since it has all
25+
the latest bells and whistles. libnvme supports Python 3.6 and above.
826

927
Dependencies
10-
------------
28+
^^^^^^^^^^^^
29+
30+
libnvme only uses packages from the standard library, so no additional
31+
dependencies will be installed when installing libnvme.
32+
33+
Install libnvme python
34+
^^^^^^^^^^^^^^^^^^^^^^
1135

12-
tbd
36+
Debian / Ubuntu:
37+
38+
.. code-block:: sh
39+
40+
$ apt-get install python3-libnvme
41+
42+
Fedora / Red Hat:
43+
44+
.. code-block:: sh
1345

14-
Install libnvme
15-
-------------
46+
$ dnf install python3-libnvme
1647

17-
libnvme is available on `PyPI`_, and can be installed using pip. The version on PyPI is
18-
always the latest stable release.
48+
libnvme is available on `PyPI`_, and can be installed using pip. The
49+
version on PyPI is always the latest stable release.
1950

2051
.. _PyPi: https://pypi.org/project/libnvme/
2152

0 commit comments

Comments
 (0)