# MB_FakeEnd

## C Specification

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

## Arguments

None.

## Return Values

None.

## Description

This function ends the fake multiboot child process 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, the `MB_COMM_CSTATE_CANCELED` callback will be notified to the function set using `MB_FakeSetCStateCallback` and the `MB_COMM_CSTATE_FAKE_END` callback will be notified. At the point when `MB_COMM_CSTATE_FAKE_END` is issued, it is safe to release the work region that was allocated by `MB_FakeInit`. 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. At the point when the `MB_COMM_CSTATE_FAKE_END` callback is issued, it is safe to release the work region that was allocated with the `MB_FakeInit` function.

## See Also

`MB_FakeInit
`

## Revision History

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

CONFIDENTIAL