FreeBSD/sys/cam/scsi/scsi_enc.c
/*================== Enclosure Monitoring/Processing Daemon ==================*/
/**
 * \brief Queue an update request for a given action, if needed.
 *
 * \param enc		SES softc to queue the request for.
 * \param action	Action requested.
 */
Enclosure Monitoring/Processing Daemon
\brief Queue an update request for a given action, if needed.

\param enc           SES softc to queue the request for.
\param action        Action requested.
Enclosure Monitoring / Processing Daemon \ brief Queue an update request for a given action if needed . \ param enc SES softc to queue the request for . \ param action Action requested .
void
enc_update_request(enc_softc_t *enc, uint32_t action)
{
	if ((enc->pending_actions & (0x1 << action)) == 0) {
		enc->pending_actions |= (0x1 << action);
		ENC_DLOG(enc, "%s: queing requested action %d\n",
		    __func__, action);
		if (enc->current_action == ENC_UPDATE_NONE)
			wakeup(enc->enc_daemon);
	} else {
		ENC_DLOG(enc, "%s: ignoring requested action %d - "
		    "Already queued\n", __func__, action);
	}
}
void enc_update_request ( enc_softc_t * enc , uint32_t action ) { if ( ( enc -> pending_actions & ( 0x1 << action ) ) == 0 ) { enc -> pending_actions |= ( 0x1 << action ) ; ENC_DLOG ( enc , " \n " , __func__ , action ) ; if ( enc -> current_action == ENC_UPDATE_NONE ) wakeup ( enc -> enc_daemon ) ; } else { ENC_DLOG ( enc , " " " \n " , __func__ , action ) ; } }
Enclosure Monitoring/Processing Daemon
 \brief Queue an update request for a given action, if needed.
Enclosure Monitoring / Processing Daemon \ brief Queue an update request for a given action if needed .