questions about KE_MSG_ALLOC

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
Anonymous (not verified)
questions about KE_MSG_ALLOC

Hi,

想知道一旦我们使用KE_MSG_ALLOC;谁释放the memory; is the responsibility of the programmer? or is it handled by the kernel?
if we have to free the memory; how does one goes about doing it?

Thanks,
Mutahir

Device:
MT_dialog
Offline
Last seen:3 months 4 hours ago
Staff
Joined:2015-06-08 11:34
Hi mutahir,

Hi mutahir,

Once you allocate the message via the KE_MSG_ALLOC and send it via the ke_msg_send(), the scheduler will free the message as long as you return KE_MSG_CONSUMED from the application handler of the message. You can find more info regarding the kernel and the message handling at the RW-BT-KERNEL-SW.pdf.

Thansk MT_dialog

mutahir (not verified)
Thanks, much appreciated.

Thanks, much appreciated.

Regards,
Mutahir