---
title: YieldBuffer
framework: DriverKit
role: symbol
role_heading: Instance Method
path: driverkit/ioextensiblepaniclog/yieldbuffer
---

# YieldBuffer

## Declaration

```occ
virtual kern_return_t YieldBuffer(uint32_t used_len);
```

## Parameters

- `used_len`: The length of the buffer used by the client.

## Return Value

Return Value 0 in case of success. Negative in case of an error.

## Discussion

Discussion This function is called to yield the buffer and set the used_len for the buffer After this function call, InsertData() and AppendData() can be called.
