Searched refs:buflen (Results 1 – 2 of 2) sorted by relevance
697 int get_cmdline(struct task_struct *task, char *buffer, int buflen) in get_cmdline() argument717 if (len > buflen) in get_cmdline()718 len = buflen; in get_cmdline()726 if (res > 0 && buffer[res-1] != '\0' && len < buflen) { in get_cmdline()732 if (len > buflen - res) in get_cmdline()733 len = buflen - res; in get_cmdline()
2116 unsigned long buflen = count; in vread() local2160 if (buf != buf_start + buflen) in vread()2161 memset(buf, 0, buflen - (buf - buf_start)); in vread()2163 return buflen; in vread()2197 unsigned long n, buflen; in vwrite() local2203 buflen = count; in vwrite()2239 return buflen; in vwrite()