-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysfs: Export NVMe controller sysfs directory return function
The path is returned with the controller name by the nvme scan. To return the path without the nvme scan nvme identify namespace. Signed-off-by: Tokunori Ikegami <[email protected]>
- Loading branch information
Showing
7 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* SPDX-License-Identifier: LGPL-2.1-or-later */ | ||
/* | ||
* This file is part of libnvme. | ||
*/ | ||
|
||
#ifndef _LIBNVME_SYSFS_H | ||
#define _LIBNVME_SYSFS_H | ||
|
||
/** | ||
* DOC: sysfs.h | ||
* | ||
* libnvme sysfs directory | ||
*/ | ||
|
||
/** | ||
* nvme_ctrl_sysfs_dir() - Return for a NVMe controller sysfs directory | ||
* | ||
* Return: NVMe controller sysfs directory | ||
*/ | ||
const char *nvme_ctrl_sysfs_dir(void); | ||
|
||
#endif /* _LIBNVME_SYSFS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
#include "util.h" | ||
#include "fabrics.h" | ||
#include "log.h" | ||
#include "sysfs.h" | ||
#include "private.h" | ||
|
||
/** | ||
|