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
Kirill Smelkov
linux
Commits
2022e705
Commit
2022e705
authored
Jun 11, 2003
by
Stephen Hemminger
Committed by
David S. Miller
Jun 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Expose alloc_netdev() for use by drivers.
parent
dae0e204
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
drivers/net/net_init.c
drivers/net/net_init.c
+2
-1
include/linux/etherdevice.h
include/linux/etherdevice.h
+0
-1
include/linux/netdevice.h
include/linux/netdevice.h
+2
-0
No files found.
drivers/net/net_init.c
View file @
2022e705
...
...
@@ -70,7 +70,7 @@
*/
st
atic
st
ruct
net_device
*
alloc_netdev
(
int
sizeof_priv
,
const
char
*
mask
,
struct
net_device
*
alloc_netdev
(
int
sizeof_priv
,
const
char
*
mask
,
void
(
*
setup
)(
struct
net_device
*
))
{
struct
net_device
*
dev
;
...
...
@@ -96,6 +96,7 @@ static struct net_device *alloc_netdev(int sizeof_priv, const char *mask,
return
dev
;
}
EXPORT_SYMBOL
(
alloc_netdev
);
static
struct
net_device
*
init_alloc_dev
(
int
sizeof_priv
)
{
...
...
include/linux/etherdevice.h
View file @
2022e705
...
...
@@ -40,7 +40,6 @@ extern int eth_header_parse(struct sk_buff *skb,
unsigned
char
*
haddr
);
extern
struct
net_device
*
init_etherdev
(
struct
net_device
*
dev
,
int
sizeof_priv
);
extern
struct
net_device
*
alloc_etherdev
(
int
sizeof_priv
);
static
inline
void
eth_copy_and_sum
(
struct
sk_buff
*
dest
,
unsigned
char
*
src
,
int
len
,
int
base
)
{
memcpy
(
dest
->
data
,
src
,
len
);
...
...
include/linux/netdevice.h
View file @
2022e705
...
...
@@ -816,6 +816,8 @@ extern void tr_setup(struct net_device *dev);
extern
void
fc_setup
(
struct
net_device
*
dev
);
extern
void
fc_freedev
(
struct
net_device
*
dev
);
/* Support for loadable net-drivers */
extern
struct
net_device
*
alloc_netdev
(
int
sizeof_priv
,
const
char
*
name
,
void
(
*
setup
)(
struct
net_device
*
));
extern
int
register_netdev
(
struct
net_device
*
dev
);
extern
void
unregister_netdev
(
struct
net_device
*
dev
);
/* Functions used for multicast support */
...
...
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