Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

8.7.2.2. Register a File Subsystem Device

You can register a file subsystem using the following function:

int alt_fs_reg (alt_dev* dev)

This function takes a single input argument, which is the device structure to register. A negative return value indicates that the file system cannot be registered.

After a file subsystem is registered with the HAL file system, you can access it through the HAL API and the ANSI C standard library. The mount point for the file subsystem is the name specified in the alt_dev structure.

For more information, refer to the "Developing Programs Using the Hardware Abstraction Layer" section.