5.10. request close()

5.10.1. Name

request-close - Close a request file descriptor

5.10.2. Synopsis

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

5.10.3. Arguments


File descriptor returned by ioctl MEDIA_IOC_REQUEST_ALLOC.

5.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.

5.10.5. Return Value

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


fd is not a valid open file descriptor.