staticvoiddestroy_cache_queue_policy(struct cache_queue_policy_ *queue_policy){structcache_queue_policy_item_*queue_item;TRACE_IN(destroy_cache_queue_policy);while(!TAILQ_EMPTY(&queue_policy->head)) { queue_item = TAILQ_FIRST(&queue_policy->head); TAILQ_REMOVE(&queue_policy->head, queue_i...
TAILQ_EMPTY(9F) Namequeue, SLIST_HEAD, SLIST_HEAD_INITIALIZER, SLIST_ENTRY, SLIST_INIT, SLIST_INSERT_AFTER, SLIST_INSERT_HEAD, SLIST_REMOVE_HEAD, SLIST_REMOVE, SLIST_FOREACH, SLIST_EMPTY, SLIST_FIRST, SLIST_NEXT, SIMPLEQ_HEAD, SIMPLEQ_HEAD_INITIALIZER, SIMPLEQ_ENTRY, SIMPLEQ_INIT...
voidmbuf_deinit(void){while(!STAILQ_EMPTY(&free_mbufq)) {structmbuf*mbuf=STAILQ_FIRST(&free_mbufq);mbuf_remove(&free_mbufq, mbuf); mbuf_free(mbuf); nfree_mbufq--;#if1//shenzheng 2015-3-23 common#ifdefNC_DEBUG_LOGntotal_mbuf--;#endif#endif//shenzheng 2015-3-23 common}#if1//s...
STAILQ_EMPTY(9F) Namequeue, SLIST_HEAD, SLIST_HEAD_INITIALIZER, SLIST_ENTRY, SLIST_INIT, SLIST_INSERT_AFTER, SLIST_INSERT_HEAD, SLIST_REMOVE_HEAD, SLIST_REMOVE, SLIST_FOREACH, SLIST_EMPTY, SLIST_FIRST, SLIST_NEXT, SIMPLEQ_HEAD, SIMPLEQ_HEAD_INITIALIZER, SIMPLEQ_ENTRY, SIMPLEQ_INIT...
STAILQ_INSERT_TAIL(&sc->sc_xfers, md, md_link);if(was_empty) mbastart(sc); } 开发者ID:ryo,项目名称:netbsd-src,代码行数:15,代码来源:mba.c 示例4: free_dellist ▲点赞 1▼ staticvoidfree_dellist(struct dl_head *dl){structdeletion_list*dl_entry;while(!STAILQ_EMPTY(dl)) { ...