Link Search Menu Expand Document

mbox_close_421

long mbox_close_421(mailbox_id_t __user *id);

Description

Closes the mailbox and frees all the memory allocated for it. If the mailbox was found and closed, the user-space id must be invalidated.

Parameters

  • id: A user-space pointer to the id of the mailbox. Must refer to an existing mailbox

Return

On success the function should return 0. Otherwise the function must return an appropriate error code as discussed in the system description.