Lines Matching refs:copy
1015 struct msg_msg *copy; in prepare_copy() local
1020 copy = load_msg(buf, bufsz); in prepare_copy()
1021 if (!IS_ERR(copy)) in prepare_copy()
1022 copy->m_ts = bufsz; in prepare_copy()
1023 return copy; in prepare_copy()
1026 static inline void free_copy(struct msg_msg *copy) in free_copy() argument
1028 if (copy) in free_copy()
1029 free_msg(copy); in free_copy()
1037 static inline void free_copy(struct msg_msg *copy) in free_copy() argument
1072 struct msg_msg *msg, *copy = NULL; in do_msgrcv() local
1083 copy = prepare_copy(buf, min_t(size_t, bufsz, ns->msg_ctlmax)); in do_msgrcv()
1084 if (IS_ERR(copy)) in do_msgrcv()
1085 return PTR_ERR(copy); in do_msgrcv()
1093 free_copy(copy); in do_msgrcv()
1127 msg = copy_msg(msg, copy); in do_msgrcv()
1214 free_copy(copy); in do_msgrcv()