Loading...
Searching...
No Matches
fd.h File Reference

OS filesystem utility functions. More...

Functions

uint64_t spdk_fd_get_size (int fd)
 Get the file size.
 
uint32_t spdk_fd_get_blocklen (int fd)
 Get the block size of the file.
 

Detailed Description

OS filesystem utility functions.

Function Documentation

◆ spdk_fd_get_blocklen()

uint32_t spdk_fd_get_blocklen ( int fd)

Get the block size of the file.

Parameters
fdFile descriptor.
Returns
Block size.

◆ spdk_fd_get_size()

uint64_t spdk_fd_get_size ( int fd)

Get the file size.

Parameters
fdFile descriptor.
Returns
File size.