diff options
| author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-05-16 13:24:27 -0400 |
|---|---|---|
| committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-05-16 13:24:27 -0400 |
| commit | 0a1f094ea7bfb405b96f53e5a6c55759e29e0987 (patch) | |
| tree | 0d1beed2b746cddce8ae295a4117003437b30533 /Documentation | |
| parent | 0f106b4f7fe6ad697cff5c02f0edd80bb066fabe (diff) | |
| parent | 678562e527fd9979f1765ffa1eb34738fc174425 (diff) | |
Merge commit 'v2.6.38.6' into linaro-2.6.38
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/flexible-arrays.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/flexible-arrays.txt b/Documentation/flexible-arrays.txt index cb8a3a00cc9..df904aec990 100644 --- a/Documentation/flexible-arrays.txt +++ b/Documentation/flexible-arrays.txt @@ -66,10 +66,10 @@ trick is to ensure that any needed memory allocations are done before entering atomic context, using: int flex_array_prealloc(struct flex_array *array, unsigned int start, - unsigned int end, gfp_t flags); + unsigned int nr_elements, gfp_t flags); This function will ensure that memory for the elements indexed in the range -defined by start and end has been allocated. Thereafter, a +defined by start and nr_elements has been allocated. Thereafter, a flex_array_put() call on an element in that range is guaranteed not to block. |
