Lines Matching defs:cm
63 struct ctrl_msg_hdr *cm;
71 cm = (struct ctrl_msg_hdr *)buf;
72 msg = (char *)buf + sizeof(*cm);
91 n = read(fd, cm, sizeof(*cm));
101 if (n != (ssize_t)sizeof(*cm)) {
106 if (cm->cm_len > CM_MSG_MAXLEN) {
111 if (cm->cm_version != CM_VERSION) {
116 if (cm->cm_type >= CM_TYPE_MAX) {
124 cm->cm_type);
126 if (cm->cm_len > sizeof(*cm)) {
127 size_t msglen = cm->cm_len - sizeof(*cm);
178 struct ctrl_msg_hdr *cm;
181 cm = (struct ctrl_msg_hdr *)buf;
182 msg = (char *)buf + sizeof(*cm);
185 iov[0].iov_base = cm;
186 iov[0].iov_len = sizeof(*cm);
188 if (cm->cm_len > sizeof(*cm)) {
191 iov[1].iov_len = cm->cm_len - iov[0].iov_len;
197 cm->cm_type, iovcnt, iov_len_total);
408 struct ctrl_msg_hdr *cm;
420 if (len > CM_MSG_MAXLEN - sizeof(*cm)) {
468 struct ctrl_msg_hdr *cm;
472 if (len > CM_MSG_MAXLEN - sizeof(*cm)) {