Lines Matching refs:res
367 int res = 0; in get_cmdline() local
380 res = access_process_vm(task, mm->arg_start, buffer, len, 0); in get_cmdline()
386 if (res > 0 && buffer[res-1] != '\0' && len < buflen) { in get_cmdline()
387 len = strnlen(buffer, res); in get_cmdline()
388 if (len < res) { in get_cmdline()
389 res = len; in get_cmdline()
392 if (len > buflen - res) in get_cmdline()
393 len = buflen - res; in get_cmdline()
394 res += access_process_vm(task, mm->env_start, in get_cmdline()
395 buffer+res, len, 0); in get_cmdline()
396 res = strnlen(buffer, res); in get_cmdline()
402 return res; in get_cmdline()