diff options
| author | Alexey Dobriyan <[email protected]> | 2018-06-08 00:10:02 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-06-08 00:34:38 +0000 |
| commit | 3cb4e162e4e258d906c07c411283b42b7f20a285 (patch) | |
| tree | 3a1d74c7ebd16d3dc9f3fbe7edce9a926b29251b /fs/proc/array.c | |
| parent | proc: simpler iterations for /proc/*/cmdline (diff) | |
| download | kernel-3cb4e162e4e258d906c07c411283b42b7f20a285.tar.gz kernel-3cb4e162e4e258d906c07c411283b42b7f20a285.zip | |
proc: deduplicate /proc/*/cmdline implementation
Code can be sonsolidated if a dummy region of 0 length is used in normal
case of \0-separated command line:
1) [arg_start, arg_end) + [dummy len=0]
2) [arg_start, arg_end) + [env_start, env_end)
Link: http://lkml.kernel.org/r/20180221193335.GB28678@avx2
Signed-off-by: Alexey Dobriyan <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
