struct ale * alq_get(struct alq *alq, int flags) { /* Should only be called in fixed length message (legacy) mode. */ KASSERT((alq->aq_flags & AQ_LEGACY), ("%s: fixed length get on variable length queue", __func__)); return (alq_getn(alq, alq->aq_entlen, flags)); }
static struct ale * ieee80211_alq_get(size_t len) { struct ale *ale; ale = alq_getn(ieee80211_alq, len + sizeof(struct ieee80211_alq_rec), ALQ_NOWAIT); if (!ale) ieee80211_alq_lost++; else ieee80211_alq_logged++; return ale; }