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
26abb0a1
Commit
26abb0a1
authored
Feb 16, 2004
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IEEE1394(r1129): Initial support for reusing node entries over plug/unplug cycles
parent
93f136bc
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
205 additions
and
86 deletions
+205
-86
drivers/ieee1394/ieee1394_core.c
drivers/ieee1394/ieee1394_core.c
+2
-0
drivers/ieee1394/nodemgr.c
drivers/ieee1394/nodemgr.c
+197
-86
drivers/ieee1394/nodemgr.h
drivers/ieee1394/nodemgr.h
+6
-0
No files found.
drivers/ieee1394/ieee1394_core.c
View file @
26abb0a1
...
@@ -1008,6 +1008,7 @@ static int __init ieee1394_init(void)
...
@@ -1008,6 +1008,7 @@ static int __init ieee1394_init(void)
0
,
0
,
NULL
,
NULL
);
0
,
0
,
NULL
,
NULL
);
bus_register
(
&
ieee1394_bus_type
);
bus_register
(
&
ieee1394_bus_type
);
bus_create_file
(
&
ieee1394_bus_type
,
&
bus_attr_destroy
);
if
(
init_csr
())
if
(
init_csr
())
return
-
ENOMEM
;
return
-
ENOMEM
;
...
@@ -1027,6 +1028,7 @@ static void __exit ieee1394_cleanup(void)
...
@@ -1027,6 +1028,7 @@ static void __exit ieee1394_cleanup(void)
cleanup_csr
();
cleanup_csr
();
bus_remove_file
(
&
ieee1394_bus_type
,
&
bus_attr_destroy
);
bus_unregister
(
&
ieee1394_bus_type
);
bus_unregister
(
&
ieee1394_bus_type
);
kmem_cache_destroy
(
hpsb_packet_cache
);
kmem_cache_destroy
(
hpsb_packet_cache
);
...
...
drivers/ieee1394/nodemgr.c
View file @
26abb0a1
This diff is collapsed.
Click to expand it.
drivers/ieee1394/nodemgr.h
View file @
26abb0a1
...
@@ -101,6 +101,9 @@ struct node_entry {
...
@@ -101,6 +101,9 @@ struct node_entry {
struct
device
device
;
struct
device
device
;
/* Means this node is not attached anymore */
int
in_limbo
;
struct
csr1212_csr
*
csr
;
struct
csr1212_csr
*
csr
;
};
};
...
@@ -188,4 +191,7 @@ void cleanup_ieee1394_nodemgr(void);
...
@@ -188,4 +191,7 @@ void cleanup_ieee1394_nodemgr(void);
/* The template for a host device */
/* The template for a host device */
extern
struct
device
nodemgr_dev_template_host
;
extern
struct
device
nodemgr_dev_template_host
;
/* Bus attribute to destroy limbo'd nodes */
extern
struct
bus_attribute
bus_attr_destroy
;
#endif
/* _IEEE1394_NODEMGR_H */
#endif
/* _IEEE1394_NODEMGR_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