---
title: service
framework: kernel
role: pseudoSymbol
path: kernel/iobasicoutputqueue/1811708-service
---

# service

Services a queue that was stalled by the target.

## Declaration

```occ
virtual bool service(
 IOOptionBits options = 0); 
```

## Return Value

Return Value Returns true if the queue was stalled and there were packets sitting in the queue awaiting delivery, false otherwise.

## Overview

Overview A target that stalls the queue must call service() when it becomes ready to accept more packets. Calling this method when the queue is not stalled is harmless.

## See Also

### Miscellaneous

- [enqueue](kernel/iobasicoutputqueue/1811623-enqueue.md)
- [flush](kernel/iobasicoutputqueue/1811630-flush.md)
- [free](kernel/iobasicoutputqueue/1811636-free.md)
- [getCapacity](kernel/iobasicoutputqueue/1811642-getcapacity.md)
- [getDropCount](kernel/iobasicoutputqueue/1811646-getdropcount.md)
- [getOutputCount](kernel/iobasicoutputqueue/1811651-getoutputcount.md)
- [getRetryCount](kernel/iobasicoutputqueue/1811660-getretrycount.md)
- [getSize](kernel/iobasicoutputqueue/1811664-getsize.md)
- [getStallCount](kernel/iobasicoutputqueue/1811671-getstallcount.md)
- [getState](kernel/iobasicoutputqueue/1811677-getstate.md)
- [getStatisticsData](kernel/iobasicoutputqueue/1811683-getstatisticsdata.md)
- [handleNetworkDataAccess](kernel/iobasicoutputqueue/1811690-handlenetworkdataaccess.md)
- [init](kernel/iobasicoutputqueue/1811696-init.md)
- [output](kernel/iobasicoutputqueue/1811702-output.md)
- [serviceThread](kernel/iobasicoutputqueue/1811713-servicethread.md)
- [setCapacity](kernel/iobasicoutputqueue/1811721-setcapacity.md)
- [start](kernel/iobasicoutputqueue/1811726-start.md)
- [stop](kernel/iobasicoutputqueue/1811734-stop.md)
- [withTarget(IONetworkController *, UInt32)](kernel/iobasicoutputqueue/1811748-withtarget.md)
- [withTarget(IONetworkController *, UInt32, UInt32)](kernel/iobasicoutputqueue/1811755-withtarget.md)
- [withTarget(OSObject *, IOOutputAction, UInt32)](kernel/iobasicoutputqueue/1811763-withtarget.md)
- [withTarget(OSObject *, IOOutputAction, UInt32, UInt32)](kernel/iobasicoutputqueue/1811770-withtarget.md)
