Beispiel #1
0
void filemap_open(struct file *file)
{
	assert((file->status == FD_INIT || file->status == FD_OPENED)
	       && file->node != NULL);
	file->status = FD_OPENED;
	fopen_count_inc(file);
}
Beispiel #2
0
void filemap_acquire(struct file *file)
{
	assert(file->status == FD_OPENED || file->status == FD_CLOSED);
	fopen_count_inc(file);
}
Beispiel #3
0
static void
fd_array_acquire(struct file *file) {
    assert(file->status == FD_OPENED);
    fopen_count_inc(file);
}
Beispiel #4
0
// fd_array_open - file's open_count++, set status to FD_OPENED
void
fd_array_open(struct file *file) {
    assert(file->status == FD_INIT && file->node != NULL);
    file->status = FD_OPENED;
    fopen_count_inc(file);
}
Beispiel #5
0
void filemap_acquire(struct file *file)
{
	fopen_count_inc(file);
}