pbs_rescreserve(3B)
π pbs_rescreserve(3B) β reserve/free batch resources π
okay so bestie, welcome to the pbs_rescreserve(3B) page β section 3B, library girlie hours, and it's giving βreserve/free batch resources.β We're covering pbs_rescreserve and pbs_rescrelease, and honestly this page ate. β¨
β¨ NAME β¨
pbs_rescreserve,pbs_rescreleaseβ reserve/free batch resources. periodt. π
π SYNOPSIS π
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_rescreserve(int connect, char **resourcelist, int arraysize,
resource_t *resource_id)
int pbs_rescrelease(int connect, resource_t resource_id)
πΈ DESCRIPTION πΈ
pbs_rescreserver
not me keeping the exact spelling pbs_rescreserver from the page β yes bestie, that's how it's written here, so no autocorrect energy. π
This call issues a request to the batch server to reserve specified resources. connect is the connection returned by pbs_connect(). resourcelist is an array of one or more strings specifying the resources to be queried. arraysize is the number of strings in resourcelist. resource_id is a pointer to a resource handle β and bestie, that pointer cannot be null. no cap.
If the present value of the resource handle is RESOURCE_T_NULL, this request is for a new reservation, and if it succeeds, a resource handle will be returned in resource_id. slay.
If the value of resource_id as supplied by the caller is not RESOURCE_T_NULL, then this is an existing (partial) reservation. Resources currently reserved for this handle will be released, and the full reservation will be attempted again. If the caller wishes to release the resources allocated to a partial reservation, the caller should pass the resource handle to pbs_rescrelease(). iykyk.
At the present time, the only resources which may be specified are "nodes". It should be specified as nodes=specification, where specification is what a user specifies in the -l option arguement list for nodes; see qsub(1B). (and yes, arguement is exactly what the page says β keeping it, bestie π)
pbs_rescrelease
The pbs_rescrelease() call releases or frees resources reserved with the resource handle of resource_id returned from a prior pbs_rescreserve() call. connect is the connection returned by pbs_connect(). it's giving cleanup main character energy π§
Both functions require that the issuing user have operator or administrator privilege. π so yeah, that's the vibe check.
π SEE ALSO π
qsub(1B)pbs_connect(3B)pbs_disconnect(3B)pbs_rescquery(3B)pbs_resources(7B)
π©Ί DIAGNOSTICS π©Ί
pbs_rescreserve() and pbs_rescrelease() return zero on success. Otherwise, a non zero error is returned. The error number is also set in pbs_errno.
PBSE_RMPARTβ this is a special case indicating that some but not all of the requested resources could be reserved; a partial reservation was made. The reservation request should either be rerequested with the returned handle or the partial resources released.PBSE_RMBADPARAMβ a parameter is incorrect, such as a null for the pointer to theresource_id.PBSE_RMNOPARAMβ a parameter is missing, such as a null resoruce list. (yes, that spelling is straight from the page β not me, bestie π)
okay that's the whole page, bestie π cute sign-off time: source/version is Local, the page is pbs_rescreserve(3B), and the footer didn't give me a date, so I'm not making one up β dateless but iconic. β¨π«Ά
π¦ where this page comes from
- epel 9: torque-devel 6.1.3-8.el9 Β· OpenPBS and TORQUEv1.1
- nixos 26.05: torque 6.1.3h2
- nixpkgs unstable: torque 6.1.3h2
- Copyright (c) 1999-2000 Veridian Information Solutions, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms