"Fossies" - the Fresh Open Source Software Archive

Member "usbutils-014/sysfs.h" (22 Feb 2021, 534 Bytes) of package /linux/misc/usbutils-014.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "sysfs.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 013_vs_014.

    1 // SPDX-License-Identifier: GPL-2.0-or-later
    2 /*
    3  * Helpers for querying USB properties from sysfs
    4  *
    5  * Copyright (C) 1999, 2000 Thomas Sailer (sailer@ife.ee.ethz.ch)
    6  */
    7 
    8 #ifndef _SYSFS_H
    9 #define _SYSFS_H
   10 /* ---------------------------------------------------------------------- */
   11 
   12 int get_sysfs_name(char *buf, size_t size, libusb_device *dev);
   13 extern int read_sysfs_prop(char *buf, size_t size, char *sysfs_name, char *propname);
   14 
   15 /* ---------------------------------------------------------------------- */
   16 #endif /* _SYSFS_H */