vmtruncate

Langue: en

Version: October 2010 (fedora - 01/12/10)

Section: 9 (Appels noyau Linux)

NAME

vmtruncate - unmap mappings lqfreedrq by truncate syscall

SYNOPSIS

int vmtruncate(struct inode * inode, loff_t offset);

ARGUMENTS

inode

inode of the file used

offset

file offset to start truncating

DESCRIPTION

NOTE! We have to be ready to update the memory sharing between the file and the memory map for a potential last incomplete page. Ugly, but necessary.

This function is deprecated and simple_setsize or truncate_pagecache should be used instead.