# MB_FakeEnd

## Syntax

  `#include <nitro/mb/mb_fake_child.h>`
  `void MB_FakeEnd( void );`

## Arguments

None.

## Return Values

None.

## Description

Ends processing performed as a fake multiboot child. This processing was started by the `MB_FakeInit` function. If this function is called in a state prior to `MB_COMM_CSTATE_BOOTREQ_ACCEPTED`, the entry to the MB parent will be cancelled. At this time, first the `MB_COMM_CSTATE_CANCELED` callback and then the `MB_COMM_CSTATE_FAKE_END` callback are notified by the function set by the `MB_FakeSetCStateCallback` function. When an `MB_COMM_CSTATE_FAKE_END` notification has been sent, it is safe to release the work area that was allocated with the `MB_FakeInit` function. After `MB_COMM_CSTATE_BOOTREQ_ACCEPTED` is issued, the parent will be notified that the download has completed normally. At this point, after the `MB_COMM_CSTATE_BOOT_READY` callback is issued, `MB_COMM_CSTATE_FAKE_END` will be issued. When the `MB_COMM_CSTATE_FAKE_END` callback has been notified, it is safe to release the work area that was allocated with the `MB_FakeInit` function.

## See Also

`MB_FakeInit
`

## Revision History

2005/03/15 Added note about cancel processing.
2004/11/25 Initial version.

CONFIDENTIAL