---
name: "execute_in_process_context"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/execute_in_process_context"
---

# execute\_in\_process\_context(9)

reliably execute the routine with user context

## NAME

execute\_in\_process\_context - reliably execute the routine with user context

## SYNOPSIS

**int execute\_in\_process\_context(work\_func\_t** *fn***, struct execute\_work \*** *ew***);**

## ARGUMENTS

*fn*

the function to execute

*ew*

guaranteed storage for the execute work structure (must be available when the work executes)

## DESCRIPTION

Executes the function immediately if process context is available, otherwise schedules the function for delayed execution.

## RETURN

0 - function was executed 1 - function was scheduled for execution

## COPYRIGHT
