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
Keywords:
Device:
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
Thanks, much appreciated.
Regards,
Mutahir