Searched refs:buflen (Results 1 – 2 of 2) sorted by relevance
365 int get_cmdline(struct task_struct *task, char *buffer, int buflen) in get_cmdline() argument377 if (len > buflen) in get_cmdline()378 len = buflen; in get_cmdline()386 if (res > 0 && buffer[res-1] != '\0' && len < buflen) { in get_cmdline()392 if (len > buflen - res) in get_cmdline()393 len = buflen - res; in get_cmdline()
1983 unsigned long buflen = count; in vread() local2027 if (buf != buf_start + buflen) in vread()2028 memset(buf, 0, buflen - (buf - buf_start)); in vread()2030 return buflen; in vread()2064 unsigned long n, buflen; in vwrite() local2070 buflen = count; in vwrite()2106 return buflen; in vwrite()