Loading...
Searching...
No Matches
sysfs.h
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2020, Google Inc.
*
* Miscellaneous utility functions to access sysfs
*/
#pragma once
#include <string>
namespace libcamera {
namespace sysfs {
std::string charDevPath(const std::string &deviceNode);
std::string firmwareNodePath(const std::string &device);
} /* namespace sysfs */
} /* namespace libcamera */
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17
libcamera::sysfs::charDevPath
std::string charDevPath(const std::string &deviceNode)
Retrieve the sysfs path for a character device.
Definition sysfs.cpp:34
libcamera::sysfs::firmwareNodePath
std::string firmwareNodePath(const std::string &device)
Retrieve the path of the firmware node for a device.
Definition sysfs.cpp:70