pbs_modify_resv(3B)
okay so bestie, welcome to pbs_modify_resv(3B) from the PBS Professional manual set π this page is literally all about changing up a reservation, and yes, it's giving βtiny function, important jobβ energy.
β¨ NAME β¨
pbs_modify_resv β modify a PBS reservation π οΈπ
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
char *pbs_modify_resv(int connect, char *reservationID,
struct attropl *attrib_list, char *extend)
β¨ DESCRIPTION β¨
So what does it do? It issues a batch request to modify a reservation. Easy. Iconic. Modify Reservation (91) batch request, generated and sent to the server over the connection you pass in as connect. That's the whole vibe πβ¨
β¨ ARGUMENTS β¨
connectβ this is the return value ofpbs_connect(). It specifies the connection over which to send the batch request to the server πreservationIDβ the reservation you wanna modify, bestie. The formats are:- Advance reservation:
R<sequence number>.<server name> - Standing reservation:
S<sequence number>.<server name>
- Advance reservation:
attrib_listβ pointer to a list of attributes to modify. Each attribute is described in anattroplstructure, and that's defined inpbs_ifl.hlike this:
struct attropl {
struct attropl *next;
char *name;
char *resource;
char *value;
enum batch_op op;
};
For any attribute that is not specified, or that is a null pointer, PBS takes the default action for that attribute. That default action is to assign the default value or to not pass the attribute with the reservation β which one it is depends on the attribute. No cap, that's just how it goes π«Ά
extendβ character string for extensions to the command. Not currently used. She's there, she's just not doing anything yet π
πΈ Members of attropl Structure πΈ
nextβ points to the next attribute in the list. A null pointer terminates the list βοΈnameβ points to a string containing the name of the attribute π·οΈresourceβ points to a string containing the name of a resource. This is used only when the specified attribute contains resource information. Otherwise,resourceshould be a null pointer.
If the resource is already present in the reservation's Resource_List attribute, the value is altered as specified. Otherwise, the resource is added. Slay, resource management π
valueβ points to a string containing the value of the attribute or resource β¨opβ the operator. The only allowed operator for this function isSET. That's it. That's the rule π¨
β¨ RETURN VALUE β¨
On success, it returns a character string containing the reservation ID assigned by the server. Yay, she worked ππ
On failure, it returns a null pointer, and the error number is available in the global integer pbs_errno. Keep that in your back pocket, bestie π
β¨ CLEANUP β¨
The space for the reservation ID string is allocated by pbs_modify_resv(). So when you're done with it, release the reservation ID via a call to free() β don't just leave it hanging, that's not the move π§Ήπ«Ά
β¨ SEE ALSO β¨
pbs_rsub(1B)pbs_connect(3B)
xoxo π β this page is from the PBS Professional docs, source tag Local, dated 15 November 2019. periodt β¨
π¦ 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