BioWriteCopyFreeHook
Function Definition
Intercepts copy-free writes.
Implementation
int BioWriteCopyFreeHook(uint64_t inode, uint64_t offset, uint64_t count, CacheSpaceDesc *space)
Parameters
Parameter |
Data Type |
Input/Output |
Description |
|---|---|---|---|
inode |
uint64_t |
Input |
File inode. |
offset |
uint64_t |
Input |
Offset of data to be written. |
count |
uint64_t |
Input |
Length of data to be written. |
space |
CacheSpaceDesc* |
Input |
Cache space returned after BioAllocCacheSpace is invoked. |
Return Values
Return Value |
Description |
|---|---|
0 |
The operation is successful. |
Other |
The operation failed. |
Parent topic: API Reference