##### Shinobi Library - Memory Card Function

# buUnmount

Unmounts a memory card

### FORMAT

`

  Sint32 buUnmount( drive )
  Sint32 drive

`

### PARAMETER

  `drive` | Extension socket number

### RETURN

  BUD_ERR_OK Normal end

### DESCRIPTION

  Unmounts a memory card inserted in a specified extension socket.

  The following values can be designated for `drive` that specifies operand extension sockets.

  BUD_DRIVE_A1 | Extension socket 1 on board A
  BUD_DRIVE_A2 | Extension socket 2 on board A
  BUD_DRIVE_B1 | Extension socket 1 on board B
  BUD_DRIVE_B2 | Extension socket 2 on board B
  BUD_DRIVE_C1 | Extension socket 1 on board C
  BUD_DRIVE_C2 | Extension socket 2 on board C
  BUD_DRIVE_D1 | Extension socket 1 on board D
  BUD_DRIVE_D2 | Extension socket 2 on board D

### NOTE

  The BUD_OP_UNMOUNT callback is generated. The BUD_OP_UNMOUNT callback is also generated if the memory card is removed. When the BUD_OP_UNMOUNT callback is generated, the work buffer that was being used by that drive is released.

buUnmount

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999