Lines Matching refs:copy
774 struct msg_msg *copy; in prepare_copy() local
779 copy = load_msg(buf, bufsz); in prepare_copy()
780 if (!IS_ERR(copy)) in prepare_copy()
781 copy->m_ts = bufsz; in prepare_copy()
782 return copy; in prepare_copy()
785 static inline void free_copy(struct msg_msg *copy) in free_copy() argument
787 if (copy) in free_copy()
788 free_msg(copy); in free_copy()
796 static inline void free_copy(struct msg_msg *copy) in free_copy() argument
831 struct msg_msg *msg, *copy = NULL; in do_msgrcv() local
841 copy = prepare_copy(buf, min_t(size_t, bufsz, ns->msg_ctlmax)); in do_msgrcv()
842 if (IS_ERR(copy)) in do_msgrcv()
843 return PTR_ERR(copy); in do_msgrcv()
851 free_copy(copy); in do_msgrcv()
885 msg = copy_msg(msg, copy); in do_msgrcv()
1004 free_copy(copy); in do_msgrcv()