-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staging: usbip: userspace: utils: remove libsysfs circumvention
Removes all of the helper functions that used a lot of hard-coded values intead of libsysfs. Most of these functions were unused anyway. Signed-off-by: matt mooney <mfm@muteddisk.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
matt mooney
authored and
Greg Kroah-Hartman
committed
Jul 6, 2011
1 parent
4737d7e
commit 42685d5
Showing
2 changed files
with
18 additions
and
263 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
/* | ||
* Copyright (C) 2011 matt mooney <mfm@muteddisk.com> | ||
* 2005-2007 Takahiro Hirofuchi | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef __UTILS_H | ||
#define __UTILS_H | ||
|
||
#include <stdlib.h> | ||
|
||
int modify_match_busid(char *busid, int add); | ||
int read_string(char *path, char *, size_t len); | ||
int read_integer(char *path); | ||
int getdevicename(char *busid, char *name, size_t len); | ||
int getdriver(char *busid, int conf, int infnum, char *driver, size_t len); | ||
int read_bNumInterfaces(char *busid); | ||
int read_bConfigurationValue(char *busid); | ||
int write_integer(char *path, int value); | ||
int write_bConfigurationValue(char *busid, int config); | ||
int read_bDeviceClass(char *busid); | ||
int readline(int sockfd, char *str, int strlen); | ||
int writeline(int sockfd, char *buff, int bufflen); | ||
|
||
#endif /* __UTILS_H */ |