LLAPI\_PROJECT\_OPEN(3) Lustre Library Functions LLAPI\_PROJECT\_OPEN(3)

# [NAME](#NAME)

llapi\_project\_open - open project mapping file

# [SYNOPSIS](#SYNOPSIS)

```
#include <lustre/lustreapi.h>

int llapi_project_open(const char *name, struct ll_project_handle *hdl,
                       char *mode);
```

# [DESCRIPTION](#DESCRIPTION)

The **llapi\_project\_open()** function opens the file specified by **name**. if *name* is NULL then it will use the path in **LIBLUSTREAPI\_PROJECT**, if available, and will default back to **/etc/projid** otherwise.

# [RETURN VALUES](#RETURN_VALUES)

**0**

on success

[-ve](#ve)

error code on failure and sets errno appropriately.

# [ERRORS](#ERRORS)

[**-EINVAL**](#EINVAL)

if *name* is not NULL, but begins with ' '.

[**-ENOMEM**](#ENOMEM)

if it fails to allocate enough space for the new **ll\_project\_handle**.

# [AVAILABILITY](#AVAILABILITY)

**llapi\_project\_open()** is part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) user application interface library since release 2.17.0

# [SEE ALSO](#SEE_ALSO)

[**lfs\_project**(1)](/man/enterprise-packages/lustre/lfs_project.1), [**llapi\_project\_close**(3)](/man/enterprise-packages/lustre/llapi_project_close.3), [**llapi\_project\_fgetnam**(3)](/man/enterprise-packages/lustre/llapi_project_fgetnam.3), [**llapi\_project\_fgetprjid**(3)](/man/enterprise-packages/lustre/llapi_project_fgetprjid.3), [**llapi\_project\_get**(3)](/man/enterprise-packages/lustre/llapi_project_get.3), [**llapi\_project\_getnam**(3)](/man/enterprise-packages/lustre/llapi_project_getnam.3), [**llapi\_project\_getprjid**(3)](/man/enterprise-packages/lustre/llapi_project_getprjid.3), [**llapi\_project\_put**(3)](/man/enterprise-packages/lustre/llapi_project_put.3), [**projid**(5)](/man/enterprise-packages/lustre/projid.5), [**lustreapi**(7)](/man/enterprise-packages/lustre/lustreapi.7)

2025-07-01 Lustre User API

---

Document: llapi_project_open(3) from lustre 2.17.60-r0 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
