diff options
author | Eddie James <eajames@us.ibm.com> | 2018-06-21 15:57:02 -0500 |
---|---|---|
committer | Edward A. James <eajames@us.ibm.com> | 2018-06-27 18:15:26 +0000 |
commit | 4f4712d820ea2e8c49c230be87a60d984ece739a (patch) | |
tree | 96507d7e76e7c50f9acb3f6ab6d0ec6da50fd0b7 /occ_pass_through.hpp | |
parent | 3c1706a8c36f7d05299ca65e2f3dc9a3785566a6 (diff) | |
download | openpower-occ-control-4f4712d820ea2e8c49c230be87a60d984ece739a.tar.gz openpower-occ-control-4f4712d820ea2e8c49c230be87a60d984ece739a.zip |
passthrough: only open /dev/occX during the operation
The file handle was left open constantly, resulting in dead file handles
when FSI is rescanned.
Change-Id: I1ca8b330131eaad3e3672f5e8fbc3b994e8c34d6
Signed-off-by: Eddie James <eajames@us.ibm.com>
Diffstat (limited to 'occ_pass_through.hpp')
-rw-r--r-- | occ_pass_through.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/occ_pass_through.hpp b/occ_pass_through.hpp index 205fc04..384a065 100644 --- a/occ_pass_through.hpp +++ b/occ_pass_through.hpp @@ -60,6 +60,9 @@ class PassThrough : public Iface */ std::string devicePath; + /** @brief Indicates whether or not the OCC is currently active */ + bool occActive = false; + /** brief file descriptor associated with occ device */ int fd = -1; |