MCPcopy Create free account
hub / github.com/clementgallet/libTAS / udev_device_get_devnode

Function udev_device_get_devnode

src/library/inputs/udevwrappers.cpp:1530–1540  ·  view source on GitHub ↗

Override */

Source from the content-addressed store, hash-verified

1528 return udev_device->device.sysnum().c_str();
1529}
1530/* Override */ const char *udev_device_get_devnode(struct udev_device *udev_device) {
1531 LOGTRACE(LCF_FILEIO);
1532 if (Global::shared_config.debug_state & SharedConfig::DEBUG_NATIVE_FILEIO) {
1533 LINK_NAMESPACE(udev_device_get_devnode, "udev");
1534 return orig::udev_device_get_devnode(udev_device);
1535 }
1536
1537 if (!udev_device)
1538 return errno = EINVAL, nullptr;
1539 return udev_device->device.devnode().c_str();
1540}
1541/* Override */ int udev_device_get_is_initialized(struct udev_device *udev_device) {
1542 LOGTRACE(LCF_FILEIO);
1543 if (Global::shared_config.debug_state & SharedConfig::DEBUG_NATIVE_FILEIO) {

Callers

nothing calls this directly

Calls 2

devnodeMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected