Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public
Document Table of Contents

16.1.1.21. alt_flash_close_dev()

Prototype

void alt_flash_close_dev(alt_flash_fd* fd)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

No.

Available from ISR

No.

Include

<sys/alt_flash.h>

Description

The alt_flash_close_dev() function closes a flash device. All subsequent calls to alt_write_flash(), alt_read_flash(), alt_get_flash_info(), alt_erase_flash_block(), or alt_write_flash_block() for this flash device fail.

Call the alt_flash_close_dev() function only when operating in single-threaded mode.

The only valid values for the fd parameter are those returned from the alt_flash_open_dev function. If any other value is passed, the behavior of this function is undefined.

Return

--