pbs_submit_resv(3B)
β¨ pbs_submit_resv(3B) β PBS Professional β¨
okay so bestie, you wanna submit a PBS reservation from a C program? this is the function for you π
it's a <something>(3B) manpage from PBS Professional, and honestly it's a whole vibe.
πΈ NAME πΈ
pbs_submit_resv β submit a PBS reservation π
π¦ SYNOPSIS π¦
#include <pbs_error.h>
#include <pbs_ifl.h>
char *pbs_submit_resv(int connect, struct attropl *attrib_list,
char *extend)
π DESCRIPTION π
So what it does is it issues a batch request to submit a brand-new reservation β¨ like, it generates a Submit Reservation (70) batch request and sends it off to the server over the connection you passed in as connect.
Then it returns a pointer to the reservation ID. that's it, that's the whole function, and it ate π
π ARGUMENTS π
connectβ the return value ofpbs_connect(), fr fr. it specifies the connection over which the batch request gets sent to the server π₯attrib_listβ pointer to a list of attributes to set, with values π«Ά. each attribute is described in anattroplstructure, defined inpbs_ifl.has:
struct attropl {
struct attropl *next;
char *name;
char *resource;
char *value;
enum batch_op op;
};
for any attribute that's not specified, or that's a null pointer, PBS takes the default action for that attribute π. the default action is either to assign the default value or to not pass the attribute with the reservation β which one it is depends on the attribute. so like, it's giving "trust the process" but the process is per-attribute π
extendβ character string for extensions to the command. not currently used. so yeah, it's just kinda there, living its best life β¨
π§ Members of attropl Structure π§
nextβ points to the next attribute in the list. a null pointer terminates the list. so the null is the end-of-list signal, iconic βnameβ points to a string containing the name of the attribute πresourceβ points to a string containing the name of a resource. used only when the specified attribute contains resource information π¦. otherwise,resourceshould be a null pointer, no cap.valueβ points to a string containing the value of the attribute or resource πopβ the operator. the only allowed operator for this function isSET. periodt π
π₯ RETURN VALUE π₯
Returns a pointer to a character string containing the reservation ID assigned by the server π
If an error occurred, the routine returns a null pointer, and the error number is available in the global integer pbs_errno π so like, check that.
π§Ό CLEANUP π§Ό
The space for the reservation ID returned by pbs_submit_resv() is allocated by pbs_submit_resv() itself β so please, bestie, free it via a call to free() when you no longer need it π don't be out here leaking memory, that's not the main character energy we're going for.
β SEE ALSO β
pbs_rsub(1B)pbs_connect(3B)
and that's the page, bestie!! π this local page was dated 15 November 2019 and it's pbs_submit_resv(3B) all the way through, from the good people at PBS Professional β go forth and reserve responsibly π«Άπβ¨
π¦ where this page comes from
- nixos 26.05: openpbs 23.06.06-unstable-2026-04-02
- nixpkgs unstable: openpbs 23.06.06-unstable-2026-04-02
- Copyright (C) 1994-2021 Altair Engineering, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms