Searched refs:bytes_copied (Results 1 – 1 of 1) sorted by relevance
6032 int bytes_copied; in sctp_getsockopt_peer_addrs() local6064 bytes_copied = ((char __user *)to) - optval; in sctp_getsockopt_peer_addrs()6065 if (put_user(bytes_copied, optlen)) in sctp_getsockopt_peer_addrs()6072 size_t space_left, int *bytes_copied) in sctp_copy_laddrs() argument6108 *bytes_copied += addrlen; in sctp_copy_laddrs()6130 int bytes_copied = 0; in sctp_getsockopt_local_addrs() local6170 space_left, &bytes_copied); in sctp_getsockopt_local_addrs()6194 bytes_copied += addrlen; in sctp_getsockopt_local_addrs()6200 if (copy_to_user(to, addrs, bytes_copied)) { in sctp_getsockopt_local_addrs()6211 if (put_user(bytes_copied, optlen)) in sctp_getsockopt_local_addrs()