Lines Matching refs:len
96 size_t len;
98 len = s ? strlen(s) + 1 : 1;
99 p = malloc(len, M_SMBSTR, M_WAITOK);
101 bcopy(s, p, len);
115 size_t len;
117 len = 0;
121 len++;
122 if (maxlen && len > maxlen)
127 p = malloc(len, M_SMBSTR, M_WAITOK);
128 error = copyin(s, p, len);
140 smb_memdupin(void *umem, size_t len)
144 if (len > 8 * 1024)
146 p = malloc(len, M_SMBSTR, M_WAITOK);
147 if (copyin(umem, p, len) == 0)
157 smb_memdup(const void *umem, int len)
161 if (len > 8 * 1024)
163 p = malloc(len, M_SMBSTR, M_WAITOK);
166 bcopy(umem, p, len);
202 size_t len;
206 len=m->m_len;
207 printf("(%zu)",len);
208 while(len--){