media-close - Close a media device
#include <unistd.h>
fd
File descriptor returned by open().
open()
Closes the media device. Resources associated with the file descriptor are freed. The device configuration remain unchanged.
close() returns 0 on success. On error, -1 is returned, and errno is set appropriately. Possible error codes are:
close()
errno
fd is not a valid open file descriptor.