Home
last modified time | relevance | path

Searched refs:cmlen (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/net/core/
Dscm.c233 int cmlen = CMSG_LEN(len); in put_cmsg() local
242 if (msg->msg_controllen < cmlen) { in put_cmsg()
244 cmlen = msg->msg_controllen; in put_cmsg()
250 check_object_size(data, cmlen - sizeof(*cm), true); in put_cmsg()
252 if (!user_write_access_begin(cm, cmlen)) in put_cmsg()
255 unsafe_put_user(cmlen, &cm->cmsg_len, efault_end); in put_cmsg()
259 cmlen - sizeof(*cm), efault_end); in put_cmsg()
266 cm->cmsg_len = cmlen; in put_cmsg()
267 memcpy(CMSG_DATA(cm), data, cmlen - sizeof(*cm)); in put_cmsg()
270 cmlen = min(CMSG_SPACE(len), msg->msg_controllen); in put_cmsg()
[all …]
/linux-6.12.1/net/
Dcompat.c233 int cmlen; in put_cmsg_compat() local
262 cmlen = CMSG_COMPAT_LEN(len); in put_cmsg_compat()
263 if (kmsg->msg_controllen < cmlen) { in put_cmsg_compat()
265 cmlen = kmsg->msg_controllen; in put_cmsg_compat()
269 cmhdr.cmsg_len = cmlen; in put_cmsg_compat()
273 if (copy_to_user(CMSG_COMPAT_DATA(cm), data, cmlen - sizeof(struct compat_cmsghdr))) in put_cmsg_compat()
275 cmlen = CMSG_COMPAT_SPACE(len); in put_cmsg_compat()
276 if (kmsg->msg_controllen < cmlen) in put_cmsg_compat()
277 cmlen = kmsg->msg_controllen; in put_cmsg_compat()
278 kmsg->msg_control_user += cmlen; in put_cmsg_compat()
[all …]
/linux-6.12.1/fs/jffs2/
Dwbuf.c1037 int cmlen = min_t(int, c->oobavail, OOB_CM_SIZE); in jffs2_check_oob_empty() local
1056 if (mode && i < cmlen) in jffs2_check_oob_empty()
1080 int ret, cmlen = min_t(int, c->oobavail, OOB_CM_SIZE); in jffs2_check_nand_cleanmarker() local
1083 ops.ooblen = cmlen; in jffs2_check_nand_cleanmarker()
1097 return !!memcmp(&oob_cleanmarker, c->oobbuf, cmlen); in jffs2_check_nand_cleanmarker()
1105 int cmlen = min_t(int, c->oobavail, OOB_CM_SIZE); in jffs2_write_nand_cleanmarker() local
1108 ops.ooblen = cmlen; in jffs2_write_nand_cleanmarker()