Files
mckernel/kernel/include
Dominique Martinet b939ca9370 mcctrl: refactor prepare_image into new generic ikc send&wait
Many ikc messages expecting a reply use wait_event_interruptible
incorrectly, freeing memory that could still be used on the other side.

This commit implements a generic ikc send and wait helper that helps
with memory management and ownership properly:
 - if the message succeeds and a reply comes back normally, the memory
is freed by the caller as usual
 - if the wait fails (signal before the reply comes or timeout) then the
memory is set as owner by ikc and will be free when the reply comes back
later
 - if the reply never comes, the memory is freed at shutdown when
destroying ikc channels

Refs: #1076
Change-Id: I7f348d9029a6ad56ba9a50c836105ec39fa14943
2018-07-02 04:34:44 +00:00
..
2013-11-14 17:40:59 +09:00
2012-05-08 18:32:43 +09:00
2017-09-05 15:06:27 +09:00
2018-03-15 14:29:16 +09:00
2017-09-07 22:20:22 +09:00
2018-02-06 10:40:12 +09:00
2015-03-19 16:36:57 +09:00
2017-07-08 18:12:01 +09:00
2016-02-29 19:23:01 +09:00
2016-02-29 19:23:01 +09:00
2016-02-19 15:25:05 +09:00
2015-10-13 23:04:08 +09:00
2012-04-23 14:25:21 +09:00
2018-02-22 09:37:48 +09:00