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
6b6a6768
Commit
6b6a6768
authored
Dec 02, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify locking/context docs for network interfaces,
in Documentation/networking/netdevices.txt.
parent
9f083505
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
Documentation/networking/netdevices.txt
Documentation/networking/netdevices.txt
+19
-14
No files found.
Documentation/networking/netdevices.txt
View file @
6b6a6768
...
...
@@ -12,31 +12,36 @@ network devices.
struct net_device synchronization rules
=======================================
dev->open:
Locking: Inside
rtnl_lock() semaphore.
Sleeping: OK
Synchronization:
rtnl_lock() semaphore.
Context: process
dev->stop:
Locking: Inside rtnl_lock() semaphore.
Sleeping: OK
Synchronization: rtnl_lock() semaphore.
Context: process
Notes: netif_running() is guaranteed false when this is called
dev->do_ioctl:
Locking: Inside
rtnl_lock() semaphore.
Sleeping: OK
Synchronization:
rtnl_lock() semaphore.
Context: process
dev->get_stats:
Locking: Inside dev_base_lock spin
lock.
Sleeping: NO
Synchronization: dev_base_lock rw
lock.
Context: nominally process, but don't sleep inside an rwlock
dev->hard_start_xmit:
Locking: Inside
dev->xmit_lock spinlock.
Sleeping: NO
Synchronization:
dev->xmit_lock spinlock.
Context: BHs disabled
dev->tx_timeout:
Locking: Inside
dev->xmit_lock spinlock.
Sleeping: NO
Synchronization:
dev->xmit_lock spinlock.
Context: BHs disabled
dev->set_multicast_list:
Locking: Inside
dev->xmit_lock spinlock.
Sleeping: NO
Synchronization:
dev->xmit_lock spinlock.
Context: BHs disabled
dev->poll:
Synchronization: __LINK_STATE_RX_SCHED bit in dev->state. See
dev_close code and comments in net/core/dev.c for more info.
Context: softirq
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