Commit 43a7283
nvme: Make mmap functionality conditional on mmap support
Bypass the mmap functionality in mmap_registers if the target platform
doesn't support mmap. Create munmap_registers for conditional unmap
usage as well.
Use NVME_HAVE_MMAP to avoid conflict with Python's HAVE_MMAP definition
when building Python wrappers.
Signed-off-by: Broc Going <[email protected]>1 parent 6797dc1 commit 43a7283
2 files changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
419 | 421 | | |
420 | 422 | | |
421 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| |||
1107 | 1111 | | |
1108 | 1112 | | |
1109 | 1113 | | |
1110 | | - | |
| 1114 | + | |
1111 | 1115 | | |
1112 | 1116 | | |
1113 | 1117 | | |
| |||
5802 | 5806 | | |
5803 | 5807 | | |
5804 | 5808 | | |
| 5809 | + | |
| 5810 | + | |
5805 | 5811 | | |
5806 | | - | |
5807 | 5812 | | |
5808 | 5813 | | |
5809 | 5814 | | |
| |||
5832 | 5837 | | |
5833 | 5838 | | |
5834 | 5839 | | |
| 5840 | + | |
5835 | 5841 | | |
5836 | 5842 | | |
5837 | 5843 | | |
| 5844 | + | |
| 5845 | + | |
| 5846 | + | |
| 5847 | + | |
| 5848 | + | |
| 5849 | + | |
| 5850 | + | |
| 5851 | + | |
| 5852 | + | |
5838 | 5853 | | |
5839 | 5854 | | |
5840 | 5855 | | |
| |||
5886 | 5901 | | |
5887 | 5902 | | |
5888 | 5903 | | |
5889 | | - | |
| 5904 | + | |
5890 | 5905 | | |
5891 | 5906 | | |
5892 | 5907 | | |
| |||
6171 | 6186 | | |
6172 | 6187 | | |
6173 | 6188 | | |
6174 | | - | |
| 6189 | + | |
6175 | 6190 | | |
6176 | 6191 | | |
6177 | 6192 | | |
| |||
6455 | 6470 | | |
6456 | 6471 | | |
6457 | 6472 | | |
6458 | | - | |
| 6473 | + | |
6459 | 6474 | | |
6460 | 6475 | | |
6461 | 6476 | | |
| |||
0 commit comments