GET_STATE
if (function != GET_STATE && function != SET_STATE)
case GET_STATE:
rv = getset_state(sc, &state, GET_STATE);