> For the complete documentation index, see [llms.txt](https://eric-lo.gitbook.io/lab9-filesystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eric-lo.gitbook.io/lab9-filesystem/accessing-fat-using-c/c-header-of-fat.md).

# C Header of FAT

In Linux, there is already predefined header for accessing the FAT32 system. Just include :

```c
#include <linux/msdos_fs.h>
```

You can check the whole file in`/usr/include/linux/`folder. Inside this header, there is a predefined structure, called **fat\_boot\_sector** and **msdos\_dir\_entry**. This provides a simple way to get all the parameters
