Rev 6336 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6336 | Rev 6936 | ||
---|---|---|---|
Line 133... | Line 133... | ||
133 | * is convenient for a "not found" value. |
133 | * is convenient for a "not found" value. |
134 | */ |
134 | */ |
135 | #define idr_for_each_entry(idp, entry, id) \ |
135 | #define idr_for_each_entry(idp, entry, id) \ |
136 | for (id = 0; ((entry) = idr_get_next(idp, &(id))) != NULL; ++id) |
136 | for (id = 0; ((entry) = idr_get_next(idp, &(id))) != NULL; ++id) |
Line -... | Line 137... | ||
- | 137 | ||
- | 138 | /** |
|
- | 139 | * idr_for_each_entry - continue iteration over an idr's elements of a given type |
|
- | 140 | * @idp: idr handle |
|
- | 141 | * @entry: the type * to use as cursor |
|
- | 142 | * @id: id entry's key |
|
- | 143 | * |
|
- | 144 | * Continue to iterate over list of given type, continuing after |
|
- | 145 | * the current position. |
|
- | 146 | */ |
|
- | 147 | #define idr_for_each_entry_continue(idp, entry, id) \ |
|
- | 148 | for ((entry) = idr_get_next((idp), &(id)); \ |
|
- | 149 | entry; \ |
|
- | 150 | ++id, (entry) = idr_get_next((idp), &(id))) |
|
137 | 151 | ||
138 | /* |
152 | /* |
139 | * IDA - IDR based id allocator, use when translation from id to |
153 | * IDA - IDR based id allocator, use when translation from id to |
140 | * pointer isn't necessary. |
154 | * pointer isn't necessary. |
141 | * |
155 | * |