Get the domain of a file or directory
#include <fs_crypto_api.h>
#include <sys/fs_crypto.h>
int fs_crypto_file_get_domain( const char *path,
int *pdomain,
int *preply );
The fs_crypto_file_get_domain() function gets the domain number for the given file or directory, storing the number in the location that domain points to.
This function sets the variable pointed to by preply to one of the following values:
This function can also return any of the errors indicated by devctl() or open().
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |