11 #include "../kernel/event.h"
12 #include "../services/ncm_types.h"
13 #include "../services/acc.h"
14 #include "../sf/service.h"
18 #define FS_MAX_PATH 0x301
21 #define FS_SAVEDATA_CURRENT_APPLICATIONID 0
57 char name[FS_MAX_PATH];
194 FsCustomStorageId_System = 0,
195 FsCustomStorageId_SdCard = 1,
200 FsImageDirectoryId_Nand = 0,
201 FsImageDirectoryId_Sd = 1,
236 FsSaveDataFlags_KeepAfterResettingSystemSaveData =
BIT(0),
237 FsSaveDataFlags_KeepAfterRefurbishment =
BIT(1),
238 FsSaveDataFlags_KeepAfterResettingSystemSaveDataWithoutUserSaveData =
BIT(2),
239 FsSaveDataFlags_NeedsSecureDelete =
BIT(3),
244 FsSaveDataMetaType_None = 0,
245 FsSaveDataMetaType_Thumbnail = 1,
246 FsSaveDataMetaType_ExtensionContext = 2,
258 FsGameCardPartition_Update = 0,
259 FsGameCardPartition_Normal = 1,
260 FsGameCardPartition_Secure = 2,
277 u32 reserved[0x38/
sizeof(
u32)];
289 FsBisPartitionId_BootPartition1Root = 0,
291 FsBisPartitionId_BootPartition2Root = 10,
293 FsBisPartitionId_UserDataRoot = 20,
294 FsBisPartitionId_BootConfigAndPackage2Part1 = 21,
295 FsBisPartitionId_BootConfigAndPackage2Part2 = 22,
296 FsBisPartitionId_BootConfigAndPackage2Part3 = 23,
297 FsBisPartitionId_BootConfigAndPackage2Part4 = 24,
298 FsBisPartitionId_BootConfigAndPackage2Part5 = 25,
299 FsBisPartitionId_BootConfigAndPackage2Part6 = 26,
300 FsBisPartitionId_CalibrationBinary = 27,
301 FsBisPartitionId_CalibrationFile = 28,
302 FsBisPartitionId_SafeMode = 29,
303 FsBisPartitionId_User = 30,
304 FsBisPartitionId_System = 31,
305 FsBisPartitionId_SystemProperEncryption = 32,
306 FsBisPartitionId_SystemProperPartition = 33,
307 FsBisPartitionId_SignedSystemPartitionOnSafeMode = 34,
308 FsBisPartitionId_DeviceTreeBlob = 35,
309 FsBisPartitionId_System0 = 36,
331 bool directory_name_length_max_has_value;
332 bool file_name_length_max_has_value;
333 bool directory_path_length_max_has_value;
334 bool file_path_length_max_has_value;
335 bool utf16_create_directory_path_length_max_has_value;
336 bool utf16_delete_directory_path_length_max_has_value;
337 bool utf16_rename_source_directory_path_length_max_has_value;
338 bool utf16_rename_destination_directory_path_length_max_has_value;
339 bool utf16_open_directory_path_length_max_has_value;
340 bool utf16_directory_name_length_max_has_value;
341 bool utf16_file_name_length_max_has_value;
342 bool utf16_directory_path_length_max_has_value;
343 bool utf16_file_path_length_max_has_value;
345 s32 directory_name_length_max;
346 s32 file_name_length_max;
347 s32 directory_path_length_max;
348 s32 file_path_length_max;
349 s32 utf16_create_directory_path_length_max;
350 s32 utf16_delete_directory_path_length_max;
351 s32 utf16_rename_source_directory_path_length_max;
352 s32 utf16_rename_destination_directory_path_length_max;
353 s32 utf16_open_directory_path_length_max;
354 s32 utf16_directory_name_length_max;
355 s32 utf16_file_name_length_max;
356 s32 utf16_directory_path_length_max;
357 s32 utf16_file_path_length_max;
363 FsPriority_Normal = 0,
364 FsPriority_Realtime = 1,
366 FsPriority_Background = 3,
371 FsContentAttributes_None = 0x0,
372 FsContentAttributes_All = 0xF,
383 u32 num_activation_failures;
384 u32 num_activation_error_corrections;
385 u32 num_read_write_failures;
386 u32 num_read_write_error_corrections;
400 u16 open_file_peak_count;
401 u16 open_directory_peak_count;
406 u16 open_unique_file_entry_peak_count;
407 u16 open_unique_directory_entry_peak_count;
414 u32 safe_error_number;
419 u32 rom_fs_remount_for_data_corruption_count;
420 u32 rom_fs_unrecoverable_data_corruption_by_remount_count;
422 u32 rom_fs_recovered_by_invalidate_cache_count;
423 u32 save_data_index_count;
430 u32 rom_fs_deep_retry_start_count;
431 u32 rom_fs_unrecoverable_by_game_card_access_failed_count;
440 u64 pooled_buffer_peak_free_size;
441 u64 pooled_buffer_retried_count;
442 u64 pooled_buffer_reduce_allocation_count;
443 u64 buffer_manager_peak_free_size;
444 u64 buffer_manager_retried_count;
445 u64 exp_heap_peak_free_size;
446 u64 buffer_pool_peak_free_size;
447 u64 patrol_read_allocate_buffer_success_count;
448 u64 patrol_read_allocate_buffer_failure_count;
449 u64 buffer_manager_peak_total_allocatable_size;
450 u64 buffer_pool_max_allocate_size;
451 u64 pooled_buffer_failed_ideal_allocation_count_on_async_access;
458 u16 game_card_crc_error_num;
460 u16 asic_crc_error_num;
464 u16 retry_limit_out_num;
465 u16 timeout_retry_num;
466 u16 asic_reinitialize_failure_detail;
469 u16 asic_reinitialize_num;
470 u32 initialize_count;
471 u16 asic_reinitialize_failure_num;
472 u16 awaken_failure_num;
474 u16 refresh_succeeded_count;
475 u32 last_read_error_page_address;
476 u32 last_read_error_page_count;
478 u32 read_count_from_insert;
479 u32 read_count_from_awaken;
510 Result fsDeleteSaveDataFileSystem(
u64 application_id);
516 Result fsIsExFatSupported(
bool* out);
526 Result fsReadSaveDataFileSystemExtraDataBySaveDataSpaceId(
void* buf,
size_t len,
FsSaveDataSpaceId save_data_space_id,
u64 saveID);
527 Result fsReadSaveDataFileSystemExtraData(
void* buf,
size_t len,
u64 saveID);
546 Result fsIsSignedSystemPartitionOnSdCardValid(
bool *out);
558 Result fsDisableAutoSaveDataCreation(
void);
560 Result fsSetGlobalAccessLogMode(
u32 mode);
561 Result fsGetGlobalAccessLogMode(
u32* out_mode);
562 Result fsOutputAccessLogToSdCard(
const char *log,
size_t size);
572 Result fsCreate_TemporaryStorage(
u64 application_id,
u64 owner_id,
s64 size,
u32 flags);
618 Result fsFsRenameDirectory(
FsFileSystem* fs,
const char* cur_path,
const char* new_path);
646 void fsFileClose(
FsFile* f);
651 void fsDirClose(
FsDir* d);
692 Result fsDeviceOperatorChallengeCardExistence(
FsDeviceOperator* d,
const FsGameCardHandle* handle,
void* dst,
size_t dst_size,
void* seed,
size_t seed_size,
void* value,
size_t value_size);
Result fsOpen_SystemBcatSaveData(FsFileSystem *out, u64 system_save_data_id)
Wrapper for fsOpenSaveDataFileSystemBySystemSaveDataId, for opening SystemBcatSaveData.
FsCreateOption
For use with fsFsCreateFile.
Definition: fs.h:164
@ FsCreateOption_BigFile
Creates a ConcatenationFile (dir with archive bit) instead of file.
Definition: fs.h:165
FsOpenMode
For use with fsFsOpenFile.
Definition: fs.h:157
@ FsOpenMode_Read
Open for reading.
Definition: fs.h:158
@ FsOpenMode_Append
Append file.
Definition: fs.h:160
@ FsOpenMode_Write
Open for writing.
Definition: fs.h:159
Result fsOpen_CacheStorage(FsFileSystem *out, u64 application_id, u16 save_data_index)
Wrapper for fsOpenSaveDataFileSystem, for opening CacheStorage.
Result fsOpen_DeviceSaveData(FsFileSystem *out, u64 application_id)
Wrapper for fsOpenSaveDataFileSystem, for opening DeviceSaveData.
FsFileSystemQueryId
FileSystemQueryId.
Definition: fs.h:324
@ FsFileSystemQueryId_SetConcatenationFileAttribute
[4.0.0+]
Definition: fs.h:325
@ FsFileSystemQueryId_IsValidSignedSystemPartitionOnSdCard
[8.0.0+]
Definition: fs.h:326
Result fsStorageOperateRange(FsStorage *s, FsOperationId op_id, s64 off, s64 len, FsRangeInfo *out)
[4.0.0+]
void fsSetPriority(FsPriority prio)
[5.0.0+] Configures the FsPriority of all filesystem commands issued within the current thread.
FsOperationId
Definition: fs.h:280
@ FsOperationId_InvalidateCache
Invalidates cache for supported file/storage.
Definition: fs.h:283
@ FsOperationId_Clear
Fill range with zero for supported file/storage.
Definition: fs.h:281
@ FsOperationId_QueryRange
Retrieves information on data for supported file/storage.
Definition: fs.h:284
@ FsOperationId_ClearSignature
Clears signature for supported file/storage.
Definition: fs.h:282
FsContentStorageId
Definition: fs.h:186
@ FsContentStorageId_SdCard
SdCard.
Definition: fs.h:189
@ FsContentStorageId_User
User.
Definition: fs.h:188
@ FsContentStorageId_System
System.
Definition: fs.h:187
@ FsContentStorageId_System0
[16.0.0+] System0
Definition: fs.h:190
Result fsOpenReadOnlySaveDataFileSystem(FsFileSystem *out, FsSaveDataSpaceId save_data_space_id, const FsSaveDataAttribute *attr)
[2.0.0+].
Result fsFsIsValidSignedSystemPartitionOnSdCard(FsFileSystem *fs, bool *out)
Wrapper for fsFsQueryEntry with FsFileSystemQueryId_IsValidSignedSystemPartitionOnSdCard.
FsImageDirectoryId
ImageDirectoryId.
Definition: fs.h:199
Result fsOpen_SaveData(FsFileSystem *out, u64 application_id, AccountUid uid)
Wrapper for fsOpenSaveDataFileSystem.
void fsExit(void)
Exit fsp-srv. Used automatically during app exit.
Result fsOpenFileSystemWithId(FsFileSystem *out, u64 id, FsFileSystemType fsType, const char *contentPath, FsContentAttributes attr)
works on all firmwares, id is ignored on [1.0.0], attr is ignored before [16.0.0]
Result fsOpen_SystemSaveData(FsFileSystem *out, FsSaveDataSpaceId save_data_space_id, u64 system_save_data_id, AccountUid uid)
Wrapper for fsOpenSaveDataFileSystemBySystemSaveDataId, for opening SystemSaveData.
Result fsOpen_TemporaryStorage(FsFileSystem *out)
Wrapper for fsOpenSaveDataFileSystem, for opening TemporaryStorage.
Result fsDeleteSaveDataFileSystemBySaveDataAttribute(FsSaveDataSpaceId save_data_space_id, const FsSaveDataAttribute *attr)
[4.0.0+]
FsFileSystemType
FileSystemType.
Definition: fs.h:313
@ FsFileSystemType_RegisteredUpdate
[4.0.0+] RegisteredUpdate
Definition: fs.h:320
@ FsFileSystemType_ApplicationPackage
ApplicationPackage.
Definition: fs.h:319
@ FsFileSystemType_ContentManual
ContentManual.
Definition: fs.h:316
@ FsFileSystemType_ContentControl
ContentControl.
Definition: fs.h:315
@ FsFileSystemType_Logo
Logo.
Definition: fs.h:314
@ FsFileSystemType_ContentData
ContentData.
Definition: fs.h:318
@ FsFileSystemType_ContentMeta
ContentMeta.
Definition: fs.h:317
Result fsOpenFileSystem(FsFileSystem *out, FsFileSystemType fsType, const char *contentPath)
Mount requested filesystem type from content file.
Result fsFsGetFileSystemAttribute(FsFileSystem *fs, FsFileSystemAttribute *out)
[15.0.0+]
Result fsOpen_BcatSaveData(FsFileSystem *out, u64 application_id)
Wrapper for fsOpenSaveDataFileSystem, for opening BcatSaveData.
FsBisPartitionId
BisPartitionId.
Definition: fs.h:288
FsContentAttributes
FsContentAttributes.
Definition: fs.h:370
Service * fsGetServiceSession(void)
Gets the Service object for the actual fsp-srv service session.
Result fsInitialize(void)
Initialize fsp-srv. Used automatically during app startup.
Result fsFileOperateRange(FsFile *f, FsOperationId op_id, s64 off, s64 len, FsRangeInfo *out)
[4.0.0+]
Result fsOpenHostFileSystemWithOption(FsFileSystem *out, const char *path, u32 flags)
[9.0.0+]
Result fsOpenSaveDataInfoReaderWithFilter(FsSaveDataInfoReader *out, FsSaveDataSpaceId save_data_space_id, const FsSaveDataFilter *save_data_filter)
[6.0.0+]
FsSaveDataSpaceId
SaveDataSpaceId.
Definition: fs.h:205
@ FsSaveDataSpaceId_All
Pseudo value for fsOpenSaveDataInfoReader().
Definition: fs.h:214
@ FsSaveDataSpaceId_System
System.
Definition: fs.h:206
@ FsSaveDataSpaceId_SdUser
[4.0.0+] SdUser
Definition: fs.h:210
@ FsSaveDataSpaceId_SdSystem
SdSystem.
Definition: fs.h:208
@ FsSaveDataSpaceId_SafeMode
[3.0.0+] SafeMode
Definition: fs.h:212
@ FsSaveDataSpaceId_ProperSystem
[3.0.0+] ProperSystem
Definition: fs.h:211
@ FsSaveDataSpaceId_User
User.
Definition: fs.h:207
@ FsSaveDataSpaceId_Temporary
[3.0.0+] Temporary
Definition: fs.h:209
Result fsGetProgramIndexForAccessLog(u32 *out_program_index, u32 *out_program_count)
Only available on [7.0.0+].
Result fsGetRightsIdByPath(const char *path, FsRightsId *out_rights_id)
Retrieves the rights id corresponding to the content path. Only available on [2.0....
FsReadOption
For use with fsFileRead.
Definition: fs.h:176
@ FsReadOption_None
No option.
Definition: fs.h:177
Result fsSaveDataInfoReaderRead(FsSaveDataInfoReader *s, FsSaveDataInfo *buf, size_t max_entries, s64 *total_entries)
Read FsSaveDataInfo data into the buf array.
FsDirEntryType
Returned by fsFsGetEntryType.
Definition: fs.h:151
@ FsDirEntryType_File
Entry is a file.
Definition: fs.h:153
@ FsDirEntryType_Dir
Entry is a directory.
Definition: fs.h:152
FsDirOpenMode
For use with fsFsOpenDirectory.
Definition: fs.h:169
@ FsDirOpenMode_ReadDirs
Enable reading directory entries.
Definition: fs.h:170
@ FsDirOpenMode_NoFileSize
Causes result entries to not contain filesize information (always 0).
Definition: fs.h:172
@ FsDirOpenMode_ReadFiles
Enable reading file entries.
Definition: fs.h:171
FsGameCardPartition
Definition: fs.h:257
@ FsGameCardPartition_Logo
[4.0.0+]
Definition: fs.h:261
Result fsExtendSaveDataFileSystem(FsSaveDataSpaceId save_data_space_id, u64 saveID, s64 dataSize, s64 journalSize)
[3.0.0+]
Result fsFsSetConcatenationFileAttribute(FsFileSystem *fs, const char *path)
Uses fsFsQueryEntry to set the archive bit on the specified absolute directory path.
Result fsOpenDataFileSystemByProgramId(FsFileSystem *out, u64 program_id)
[3.0.0+]
Result fsGetAndClearErrorInfo(FsFileSystemProxyErrorInfo *out)
[2.0.0+]
FsSaveDataRank
SaveDataRank.
Definition: fs.h:229
@ FsSaveDataRank_Primary
Primary.
Definition: fs.h:230
@ FsSaveDataRank_Secondary
Secondary.
Definition: fs.h:231
Result fsDeleteSaveDataFileSystemBySaveDataSpaceId(FsSaveDataSpaceId save_data_space_id, u64 saveID)
[2.0.0+]
Result fsFsCleanDirectoryRecursively(FsFileSystem *fs, const char *path)
[3.0.0+]
Result fsOpen_SaveDataReadOnly(FsFileSystem *out, u64 application_id, AccountUid uid)
Wrapper for fsOpenReadOnlySaveDataFileSystem.
FsPriority
FsPriority.
Definition: fs.h:362
Result fsFsQueryEntry(FsFileSystem *fs, void *out, size_t out_size, const void *in, size_t in_size, const char *path, FsFileSystemQueryId query_id)
[4.0.0+]
Result fsOpenFileSystemWithPatch(FsFileSystem *out, u64 id, FsFileSystemType fsType)
[2.0.0+], like OpenFileSystemWithId but without content path.
FsWriteOption
For use with fsFileWrite.
Definition: fs.h:181
@ FsWriteOption_None
No option.
Definition: fs.h:182
@ FsWriteOption_Flush
Forces a flush after write.
Definition: fs.h:183
FsMountHostOption
For use with fsOpenHostFileSystemWithOption.
Definition: fs.h:376
@ FsMountHostOptionFlag_PseudoCaseSensitive
Host filesystem will be pseudo case sensitive.
Definition: fs.h:378
@ FsMountHostOptionFlag_None
Host filesystem will be case insensitive.
Definition: fs.h:377
Result fsOpenSdCardFileSystem(FsFileSystem *out)
Do not call this directly, see fs_dev.h.
Result fsGetAndClearMemoryReportInfo(FsMemoryReportInfo *out)
[4.0.0+]
Result fsGetProgramId(u64 *out, const char *path, FsContentAttributes attr)
[17.0.0+]
FsSaveDataMetaType
SaveDataMetaType.
Definition: fs.h:243
Result fsOpenDataStorageByDataId(FsStorage *out, u64 dataId, NcmStorageId storageId)
<[3.0.0+]
FsGameCardAttribute
Definition: fs.h:249
@ FsGameCardAttribute_AutoBootFlag
Causes the cartridge to automatically start on bootup.
Definition: fs.h:250
@ FsGameCardAttribute_HistoryEraseFlag
Causes NS to throw an error on attempt to load the cartridge.
Definition: fs.h:251
@ FsGameCardAttribute_RepairToolFlag
[4.0.0+] Indicates that this gamecard is a repair tool.
Definition: fs.h:252
@ FsGameCardAttribute_DifferentRegionCupToTerraDeviceFlag
[9.0.0+] DifferentRegionCupToTerraDeviceFlag
Definition: fs.h:253
@ FsGameCardAttribute_DifferentRegionCupToGlobalDeviceFlag
[9.0.0+] DifferentRegionCupToGlobalDeviceFlag
Definition: fs.h:254
FsSaveDataFlags
SaveDataFlags.
Definition: fs.h:235
Result fsFsGetFileTimeStampRaw(FsFileSystem *fs, const char *path, FsTimeStampRaw *out)
[3.0.0+]
FsSaveDataType
SaveDataType.
Definition: fs.h:218
@ FsSaveDataType_Device
Device.
Definition: fs.h:222
@ FsSaveDataType_Temporary
[3.0.0+] Temporary
Definition: fs.h:223
@ FsSaveDataType_System
System.
Definition: fs.h:219
@ FsSaveDataType_Cache
[3.0.0+] Cache
Definition: fs.h:224
@ FsSaveDataType_Account
Account.
Definition: fs.h:220
@ FsSaveDataType_SystemBcat
[4.0.0+] SystemBcat
Definition: fs.h:225
@ FsSaveDataType_Bcat
Bcat.
Definition: fs.h:221
Result fsGetContentStorageInfoIndex(s32 *out)
[19.0.0+]
Result fsGetRightsIdAndKeyGenerationByPath(const char *path, FsContentAttributes attr, u8 *out_key_generation, FsRightsId *out_rights_id)
Retrieves the rights id and key generation corresponding to the content path. Only available on [3....
Result fsOpenCustomStorageFileSystem(FsFileSystem *out, FsCustomStorageId custom_storage_id)
[7.0.0+]
NcmStorageId
StorageId.
Definition: ncm_types.h:12
Account UserId.
Definition: acc.h:25
Kernel-mode event structure.
Definition: event.h:13
FatFatError.
Definition: fs.h:390
FatFatReportInfo1.
Definition: fs.h:399
FatFatReportInfo2.
Definition: fs.h:405
FatFatSafeInfo.
Definition: fs.h:411
This is nn::fssystem::ArchiveMacKey. Used by setsysGetThemeKey and setsysSetThemeKey....
Definition: fs.h:146
Directory entry.
Definition: fs.h:56
s64 file_size
File size.
Definition: fs.h:61
s8 type
See FsDirEntryType.
Definition: fs.h:59
FileSystemAttribute.
Definition: fs.h:330
FsFileSystemProxyErrorInfo.
Definition: fs.h:418
FsGameCardErrorReportInfo.
Definition: fs.h:457
FsMemoryReportInfo.
Definition: fs.h:439
u32 speed_emulation_type
Contains bitflags describing how data is emulated.
Definition: fs.h:276
u32 aes_ctr_key_type
Contains bitflags describing how data is AES encrypted.
Definition: fs.h:275
SaveDataAttribute.
Definition: fs.h:65
u16 save_data_index
SaveDataIndex.
Definition: fs.h:71
u64 unk_x38
0 for FsSaveDataType_System/FsSaveDataType_Account.
Definition: fs.h:75
AccountUid uid
AccountUid for the user-specific savedata to access, otherwise 0 for common savedata.
Definition: fs.h:67
u64 system_save_data_id
SystemSaveDataId, 0 for FsSaveDataType_Account.
Definition: fs.h:68
u64 unk_x28
0 for FsSaveDataType_System/FsSaveDataType_Account.
Definition: fs.h:73
u8 save_data_rank
FsSaveDataRank
Definition: fs.h:70
u64 application_id
ApplicationId of the savedata to access when accessing other programs' savedata via SaveData,...
Definition: fs.h:66
u8 save_data_type
FsSaveDataType
Definition: fs.h:69
u64 unk_x30
0 for FsSaveDataType_System/FsSaveDataType_Account.
Definition: fs.h:74
u32 pad_x24
Padding.
Definition: fs.h:72
SaveDataCreationInfo.
Definition: fs.h:99
s64 save_data_size
Size of the save data.
Definition: fs.h:100
u32 flags
FsSaveDataFlags
Definition: fs.h:104
u8 unk
0 for FsSaveDataType_System.
Definition: fs.h:106
u64 owner_id
ProgramId of the owner of this save data. 0 for FsSaveDataType_System.
Definition: fs.h:103
s64 journal_size
Journal size of the save data.
Definition: fs.h:101
u64 available_size
AvailableSize.
Definition: fs.h:102
u8 save_data_space_id
FsSaveDataSpaceId
Definition: fs.h:105
SaveDataFilter.
Definition: fs.h:126
bool filter_by_save_data_type
Filter by FsSaveDataAttribute::save_data_type.
Definition: fs.h:128
u8 save_data_rank
FsSaveDataRank
Definition: fs.h:132
bool filter_by_application_id
Filter by FsSaveDataAttribute::application_id.
Definition: fs.h:127
FsSaveDataAttribute attr
FsSaveDataAttribute
Definition: fs.h:134
bool filter_by_index
Filter by FsSaveDataAttribute::save_data_index.
Definition: fs.h:131
bool filter_by_system_save_data_id
Filter by FsSaveDataAttribute::system_save_data_id.
Definition: fs.h:130
bool filter_by_user_id
Filter by FsSaveDataAttribute::uid.
Definition: fs.h:129
SaveDataInfo.
Definition: fs.h:111
u8 save_data_space_id
FsSaveDataSpaceId
Definition: fs.h:113
u8 save_data_type
FsSaveDataType
Definition: fs.h:114
u64 application_id
ApplicationId for FsSaveDataType_Account.
Definition: fs.h:118
u8 save_data_rank
FsSaveDataRank
Definition: fs.h:121
u64 system_save_data_id
FsSaveDataAttribute::system_save_data_id.
Definition: fs.h:117
AccountUid uid
FsSave::userID.
Definition: fs.h:116
u64 save_data_id
SaveDataId.
Definition: fs.h:112
u16 save_data_index
SaveDataIndex.
Definition: fs.h:120
u64 size
Raw saveimage size.
Definition: fs.h:119
FsStorageErrorInfo.
Definition: fs.h:382
u64 created
POSIX timestamp.
Definition: fs.h:138
u8 is_valid
0x1 when the timestamps are set.
Definition: fs.h:141
u64 accessed
POSIX timestamp.
Definition: fs.h:140
u64 modified
POSIX timestamp.
Definition: fs.h:139
Service object structure.
Definition: service.h:14
int64_t s64
64-bit signed integer.
Definition: types.h:28
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:54
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
int8_t s8
8-bit signed integer.
Definition: types.h:25
uint16_t u16
16-bit unsigned integer.
Definition: types.h:20
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21