6.10. request close()

6.10.1. Name

request-close - Close a request file descriptor

6.10.2. Synopsis

#include <unistd.h>
int close(int fd)

6.10.3. Arguments

fd

File descriptor returned by ioctl MEDIA_IOC_REQUEST_ALLOC.

6.10.4. Description

Closes the request file descriptor. Resources associated with the request are freed once all file descriptors associated with the request are closed and the driver has completed the request. See here for more information.

6.10.5. Return Value

close() returns 0 on success. On error, -1 is returned, and errno is set appropriately. Possible error codes are:

EBADF

fd is not a valid open file descriptor.