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

# [NAME](#NAME)

llapi\_project\_get - read project information to a buffer

# [SYNOPSIS](#SYNOPSIS)

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

int llapi_project_get(struct ll_project_handle *hdl, ll_project *lprj);
```

# [DESCRIPTION](#DESCRIPTION)

The **llapi\_project\_get()** function reads the contents of the file specified by **hdl-&gt;lph\_file**, until an entry matches the information provided in **lprj** and fills is the remaining space with the information provided in the file. The buffer should be preallocated.

# [RETURN VALUES](#RETURN_VALUES)

**0**

on success

[-ve](#ve)

error code on failure and sets errno appropriately.

# [ERRORS](#ERRORS)

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

if both *lprj-&gt;lprj\_projname* and *lprj-&gt;lprj\_projid* are NULL, which is checked through *lprj-&gt;lprj\_valid*.

[**-ENOENT**](#ENOENT)

if no entry was found in *hdl-&gt;lph\_file* matching the information specified in *lprj*.

# [AVAILABILITY](#AVAILABILITY)

**llapi\_project\_get()** 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\_getnam**(3)](/man/enterprise-packages/lustre/llapi_project_getnam.3), [**llapi\_project\_getprjid**(3)](/man/enterprise-packages/lustre/llapi_project_getprjid.3), [**llapi\_project\_open**(3)](/man/enterprise-packages/lustre/llapi_project_open.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_get(3) from lustre 2.17.59-r1 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
