Lines Matching refs:copy
772 struct msg_msg *copy; in prepare_copy() local
777 copy = load_msg(buf, bufsz); in prepare_copy()
778 if (!IS_ERR(copy)) in prepare_copy()
779 copy->m_ts = bufsz; in prepare_copy()
780 return copy; in prepare_copy()
783 static inline void free_copy(struct msg_msg *copy) in free_copy() argument
785 if (copy) in free_copy()
786 free_msg(copy); in free_copy()
794 static inline void free_copy(struct msg_msg *copy) in free_copy() argument
829 struct msg_msg *msg, *copy = NULL; in do_msgrcv() local
839 copy = prepare_copy(buf, min_t(size_t, bufsz, ns->msg_ctlmax)); in do_msgrcv()
840 if (IS_ERR(copy)) in do_msgrcv()
841 return PTR_ERR(copy); in do_msgrcv()
849 free_copy(copy); in do_msgrcv()
883 msg = copy_msg(msg, copy); in do_msgrcv()
976 free_copy(copy); in do_msgrcv()