filp_open(9)

filp_open9

Open file and return file pointer

Usage

struct file * filp_open(const char * filename, int flags, int mode);

Arguments

filename

path to open

flags

open flags as per the open(2) second argument

mode

mode for the new file if O_CREAT is set, else ignored

Overview

This is the helper to open a file from kernelspace if you really have to. But in generally you should not do this, so please move along, nothing to see here..

Releases

2 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0
  2. 6.0

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.