binfmt/pcode.c
/****************************************************************************
 * Name: pcode_unload
 *
 * Description:
 *   Called when the pcode binary is unloaded.  This is necessary primarily
 *   to handler error conditions where unload_module is called after
 *   pcode_load without having executed the P-Code module.
 *
 ****************************************************************************/
pcode_unload
Description:
Called when the pcode binary is unloaded.  This is necessary primarily
to handler error conditions where unload_module is called after
pcode_load without having executed the P-Code module.
pcode_unload Description : Called when the pcode binary is unloaded . This is necessary primarily to handler error conditions where unload_module is called after pcode_load without having executed the P - Code module .
static int pcode_unload(struct binary_s *binp)
{
  if (g_pcode_handoff.binp)
    {
      g_pcode_handoff.binp = NULL;
      sem_post(&g_pcode_handoff.exclsem);
    }
  return OK;
}
static int pcode_unload ( struct binary_s * binp ) { if ( g_pcode_handoff . binp ) { g_pcode_handoff . binp = NULL ; sem_post ( & g_pcode_handoff . exclsem ) ; } return OK ; }
Name: pcode_unload
 Description:
   Called when the pcode binary is unloaded.
Name : pcode_unload Description : Called when the pcode binary is unloaded .
/* Increment the semaphore count back to one if appropriate */