Home
last modified time | relevance | path

Searched refs:MAX_MSG_SIZE (Results 1 – 8 of 8) sorted by relevance

/external/ltp/testcases/kernel/connectors/pec/
Dpec_listener.c61 #define MAX_MSG_SIZE 256 macro
93 memset(nlhdr, 0, NLMSG_SPACE(MAX_MSG_SIZE)); in netlink_send()
129 memset(nlhdr, 0, NLMSG_SPACE(MAX_MSG_SIZE)); in netlink_recv()
134 iov.iov_len = NLMSG_SPACE(MAX_MSG_SIZE); in netlink_recv()
237 nlhdr = malloc(NLMSG_SPACE(MAX_MSG_SIZE)); in main()
/external/linux-kselftest/tools/testing/selftests/ipc/
Dmsgque.c12 #define MAX_MSG_SIZE 32 macro
17 char mtext[MAX_MSG_SIZE];
88 ret = msgrcv(msgque->msq_id, &message.mtype, MAX_MSG_SIZE, in check_and_destroy_queue()
163 MAX_MSG_SIZE, i, IPC_NOWAIT | MSG_COPY); in dump_queue()
/external/rust/crates/vmm_vhost/src/vhost_user/
Dmaster.rs419 if buf.len() > MAX_MSG_SIZE { in set_config()
569 if mem::size_of::<T>() > MAX_MSG_SIZE { in send_request_with_body()
587 if len > MAX_MSG_SIZE { in send_request_with_payload()
627 if mem::size_of::<T>() > MAX_MSG_SIZE || hdr.is_reply() { in recv_reply()
644 if mem::size_of::<T>() > MAX_MSG_SIZE in recv_reply_with_payload()
646 || hdr.get_size() as usize > MAX_MSG_SIZE in recv_reply_with_payload()
867 let buf = vec![0x0; MAX_MSG_SIZE + 1]; in test_master_set_config_negative()
925 let buf = vec![0x0; MAX_MSG_SIZE + 1]; in test_master_get_config_negative0()
947 let buf = vec![0x0; MAX_MSG_SIZE + 1]; in test_master_get_config_negative1()
968 let buf = vec![0x0; MAX_MSG_SIZE + 1]; in test_master_get_config_negative2()
[all …]
Dslave_req_handler.rs547 if buf.len() > MAX_MSG_SIZE || buf.len() < payload_offset { in get_config()
589 if size > MAX_MSG_SIZE || size < mem::size_of::<VhostUserConfig>() { in set_config()
634 if buf.len() > MAX_MSG_SIZE || buf.len() < mem::size_of::<VhostUserU64>() { in handle_vring_fd_request()
749 if mem::size_of::<T>() > MAX_MSG_SIZE in new_reply_header()
750 || payload_size > MAX_MSG_SIZE in new_reply_header()
751 || mem::size_of::<T>() + payload_size > MAX_MSG_SIZE in new_reply_header()
Dmessage.rs23 pub const MAX_MSG_SIZE: usize = 0x1000; constant
330 } else if self.size as usize > MAX_MSG_SIZE { in is_valid()
815 hdr.set_size((MAX_MSG_SIZE - mem::size_of::<VhostUserMsgHeader<MasterReq>>()) as u32); in msg_header_ops()
Dmaster_req_handler.rs214 if len as usize > MAX_MSG_SIZE { in handle_request()
338 if mem::size_of::<T>() > MAX_MSG_SIZE { in new_reply_header()
Dconnection.rs220 if mem::size_of::<T>() > MAX_MSG_SIZE { in send_message()
259 if mem::size_of::<T>() > MAX_MSG_SIZE { in send_message_with_payload()
262 if len > MAX_MSG_SIZE - mem::size_of::<T>() { in send_message_with_payload()
/external/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_getdelays.c68 #define MAX_MSG_SIZE 1024 macro
88 char buf[MAX_MSG_SIZE];