---
name: "relay_late_setup_files"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/relay_late_setup_files"
---

# relay\_late\_setup\_files(9)

triggers file creation

## NAME

relay\_late\_setup\_files - triggers file creation

## SYNOPSIS

**int relay\_late\_setup\_files(struct rchan \*** *chan***, const char \*** *base\_filename***, struct dentry \*** *parent***);**

## ARGUMENTS

*chan*

channel to operate on

*base\_filename*

base name of files to create

*parent*

dentry of parent directory, **NULL** for root directory

## DESCRIPTION

Returns 0 if successful, non-zero otherwise.

Use to setup files for a previously buffer-only channel created by **relay\_open** with a NULL parent dentry.

For example, this is useful for perfomring early tracing in kernel, before VFS is up and then exposing the early results once the dentry is available.

## COPYRIGHT
