---
name: "lam_rfincr"
section: "2"
platform: "linux"
package: "lam2-dev"
version: "6.3.2-3"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/lam_rfrmfd"
---

# lam\_rfincr(2)

Control LAM specific file daemon services.

Part of [lam\_rfrmfd(2)](/lam_rfrmfd/2.md).

## NAME

rfrmfd - Control LAM specific file daemon services.

## SYNOPSIS

```
#include <freq.h>
int rfrmfd(int node, int fd);
int rfincr(int fd, int amount);
```

## DESCRIPTION

The remote function *rfincr()* increments the open count by *amount* on the file descriptor, *fd*. This is necessary before a descriptor can be passed to one or more other clients without an associated call to [lam\_rfopen(2)](/lam_rfopen/2.md). It is used by [loadgo(1)](/loadgo/1.md) and [mpirun(1)](/mpirun/1.md) and generally not used by application programs.

The remote function *rfrmfd()* sweeps clean and removes one or all of the daemon's open file descriptors. The target daemon is located by *node* and *fd* indicates the file descriptor handle to be removed. If *fd* is NOTFD, then all open descriptors, except the standard 0, 1 and 2 are removed.

## SEE ALSO

[lam\_rfposix(2)](/lam_rfposix/2.md)
