History

locking/lockdep: Update obsolete struct field description

The lock_chain struct definition has outdated comment, update it and add struct member description.

Yuyang Du committed 7 years ago

Commit d16dbd11 parent 834494b1 file · +9 −3Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/lockdep.h+9−3
@@ -203,11 +203,17 @@ struct lock_list { · 202 unmodified lines
203203 struct lock_list *parent;
204204 };
205205
206−/*
207− * We record lock dependency chains, so that we can cache them:
206+/**
207+ * struct lock_chain - lock dependency chain record
208+ *
209+ * @irq_context: the same as irq_context in held_lock below
210+ * @depth: the number of held locks in this chain
211+ * @base: the index in chain_hlocks for this chain
212+ * @entry: the collided lock chains in lock_chain hash list
213+ * @chain_key: the hash key of this lock_chain
208214 */
209215 struct lock_chain {
210− /* see BUILD_BUG_ON()s in lookup_chain_cache() */
216+ /* see BUILD_BUG_ON()s in add_chain_cache() */
211217 unsigned int irq_context : 2,
212218 depth : 6,
213219 base : 24;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t