JFFS2_DO_RESERVE_SPACE

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

jffs2_do_reserve_space - request physical space to write nodes to flash  

SYNOPSIS

"SYNOPSIS"

int jffs2_do_reserve_space (struct jffs2_sb_info * c, uint32_t minsize, uint32_t * ofs, uint32_t * len);  

ARGUMENTS

c
superblock info
minsize
Minimum acceptable size of allocation
ofs
Returned value of node offset
len
Returned value of allocation length
 

DESCRIPTION

Requests a block of physical space on the flash. Returns zero for success and puts 'ofs' and 'len' into the appriopriate place, or returns -ENOSPC or other error if appropriate.

If it returns zero, jffs2_reserve_space also downs the per-filesystem allocation semaphore, to prevent more than one allocation from being active at any time. The semaphore is later released by jffs2_commit_allocation

jffs2_reserve_space may trigger garbage collection in order to make room for the requested allocation.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 05:30:41 GMT, October 06, 2005