---
name: "filp_open"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/filp_open"
---

# filp\_open(9)

open file and return file pointer

## NAME

filp\_open - open file and return file pointer

## SYNOPSIS

**struct file \* filp\_open(const char \*** *filename***, int** *flags***, int** *mode***);**

## ARGUMENTS

*filename*

path to open

*flags*

open flags as per the [open(2)](/open/2.md) second argument

*mode*

mode for the new file if O\_CREAT is set, else ignored

## DESCRIPTION

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..

## COPYRIGHT
