Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
96f79c34
Commit
96f79c34
authored
Nov 29, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: move a internal usbfs only structure out of a public header file.
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
2f327976
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
25 deletions
+15
-25
drivers/usb/core/usb.h
drivers/usb/core/usb.h
+15
-0
include/linux/usbdevice_fs.h
include/linux/usbdevice_fs.h
+0
-25
No files found.
drivers/usb/core/usb.h
View file @
96f79c34
...
...
@@ -33,3 +33,18 @@ extern struct usb_driver usbfs_driver;
extern
struct
file_operations
usbfs_devices_fops
;
extern
struct
file_operations
usbfs_device_file_operations
;
extern
void
usbfs_conn_disc_event
(
void
);
struct
dev_state
{
struct
list_head
list
;
/* state list */
struct
usb_device
*
dev
;
struct
file
*
file
;
spinlock_t
lock
;
/* protects the async urb lists */
struct
list_head
async_pending
;
struct
list_head
async_completed
;
wait_queue_head_t
wait
;
/* wake up if a request completed */
unsigned
int
discsignr
;
struct
task_struct
*
disctask
;
void
__user
*
disccontext
;
unsigned
long
ifclaimed
;
};
include/linux/usbdevice_fs.h
View file @
96f79c34
...
...
@@ -144,29 +144,4 @@ struct usbdevfs_hub_portinfo {
#define USBDEVFS_DISCONNECT _IO('U', 22)
#define USBDEVFS_CONNECT _IO('U', 23)
/* --------------------------------------------------------------------- */
#ifdef __KERNEL__
#include <linux/list.h>
#include <asm/semaphore.h>
struct
dev_state
{
struct
list_head
list
;
/* state list */
struct
usb_device
*
dev
;
struct
file
*
file
;
spinlock_t
lock
;
/* protects the async urb lists */
struct
list_head
async_pending
;
struct
list_head
async_completed
;
wait_queue_head_t
wait
;
/* wake up if a request completed */
unsigned
int
discsignr
;
struct
task_struct
*
disctask
;
void
__user
*
disccontext
;
unsigned
long
ifclaimed
;
};
#endif
/* __KERNEL__ */
/* --------------------------------------------------------------------- */
#endif
/* _LINUX_USBDEVICE_FS_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment