Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
d5a6fe5e
Commit
d5a6fe5e
authored
18 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
more documentation
parent
de11fda3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/slurm_protocol_api.c
+11
-5
11 additions, 5 deletions
src/common/slurm_protocol_api.c
src/common/slurm_protocol_api.h
+2
-2
2 additions, 2 deletions
src/common/slurm_protocol_api.h
with
13 additions
and
7 deletions
src/common/slurm_protocol_api.c
+
11
−
5
View file @
d5a6fe5e
...
@@ -703,7 +703,7 @@ int slurm_close_accepted_conn(slurm_fd open_fd)
...
@@ -703,7 +703,7 @@ int slurm_close_accepted_conn(slurm_fd open_fd)
* IN open_fd - file descriptor to receive msg on
* IN open_fd - file descriptor to receive msg on
* OUT msg - a slurm_msg struct to be filled in by the function
* OUT msg - a slurm_msg struct to be filled in by the function
* RET List - List containing the responses of the childern (if any) we
* RET List - List containing the responses of the childern (if any) we
* forwarded the message to.
* forwarded the message to.
List containing type (ret_types_t).
*/
*/
List
slurm_receive_msg
(
slurm_fd
fd
,
slurm_msg_t
*
msg
,
int
timeout
)
List
slurm_receive_msg
(
slurm_fd
fd
,
slurm_msg_t
*
msg
,
int
timeout
)
{
{
...
@@ -1319,7 +1319,7 @@ int slurm_send_rc_msg(slurm_msg_t *msg, int rc)
...
@@ -1319,7 +1319,7 @@ int slurm_send_rc_msg(slurm_msg_t *msg, int rc)
/*
/*
* Send and recv a slurm request and response on the open slurm descriptor
* Send and recv a slurm request and response on the open slurm descriptor
* with a list containing the responses of the childern (if any) we
* with a list containing the responses of the childern (if any) we
* forwarded the message to.
* forwarded the message to.
List containing type (ret_types_t).
*/
*/
static
List
static
List
_send_and_recv_msg
(
slurm_fd
fd
,
slurm_msg_t
*
req
,
_send_and_recv_msg
(
slurm_fd
fd
,
slurm_msg_t
*
req
,
...
@@ -1453,6 +1453,7 @@ int slurm_send_recv_controller_msg(slurm_msg_t *req, slurm_msg_t *resp)
...
@@ -1453,6 +1453,7 @@ int slurm_send_recv_controller_msg(slurm_msg_t *req, slurm_msg_t *resp)
* IN request_msg - slurm_msg request
* IN request_msg - slurm_msg request
* OUT response_msg - slurm_msg response
* OUT response_msg - slurm_msg response
* RET List - return list from multiple nodes
* RET List - return list from multiple nodes
* List containing type (ret_types_t).
*/
*/
List
slurm_send_recv_node_msg
(
slurm_msg_t
*
req
,
slurm_msg_t
*
resp
,
int
timeout
)
List
slurm_send_recv_node_msg
(
slurm_msg_t
*
req
,
slurm_msg_t
*
resp
,
int
timeout
)
{
{
...
@@ -1534,7 +1535,7 @@ int slurm_send_only_node_msg(slurm_msg_t *req)
...
@@ -1534,7 +1535,7 @@ int slurm_send_only_node_msg(slurm_msg_t *req)
/*
/*
* Send message and recv "return code" message on an already open
* Send message and recv "return code" message on an already open
*
slurm file descriptor
* slurm file descriptor
return List containing type (ret_types_t).
*/
*/
static
List
_send_recv_rc_msg
(
slurm_fd
fd
,
slurm_msg_t
*
req
,
int
timeout
)
static
List
_send_recv_rc_msg
(
slurm_fd
fd
,
slurm_msg_t
*
req
,
int
timeout
)
{
{
...
@@ -1591,6 +1592,11 @@ static List _send_recv_rc_msg(slurm_fd fd, slurm_msg_t *req, int timeout)
...
@@ -1591,6 +1592,11 @@ static List _send_recv_rc_msg(slurm_fd fd, slurm_msg_t *req, int timeout)
return
ret_list
;
return
ret_list
;
}
}
/*
* Open a connection to req->address, send message (forward if told),
* req must contain the message already packed in it's buffer variable,
* and receive List of type ret_types_t from all childern nodes
*/
List
slurm_send_recv_rc_packed_msg
(
slurm_msg_t
*
msg
,
int
timeout
)
List
slurm_send_recv_rc_packed_msg
(
slurm_msg_t
*
msg
,
int
timeout
)
{
{
slurm_fd
fd
=
-
1
;
slurm_fd
fd
=
-
1
;
...
@@ -1679,8 +1685,8 @@ failed:
...
@@ -1679,8 +1685,8 @@ failed:
/*
/*
* Open a connection to the "address" specified in the the slurm msg "req"
* Open a connection to the "address" specified in the the slurm msg "req"
* Then read back an "rc" message returning
the "return_code" specified
* Then read back an "rc" message returning
List containing
*
in th
e re
sponse in the "rc" parameter
.
*
typ
e
(
re
t_types_t)
.
*/
*/
List
slurm_send_recv_rc_msg
(
slurm_msg_t
*
req
,
int
timeout
)
List
slurm_send_recv_rc_msg
(
slurm_msg_t
*
req
,
int
timeout
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/common/slurm_protocol_api.h
+
2
−
2
View file @
d5a6fe5e
...
@@ -537,7 +537,7 @@ int slurm_send_recv_controller_msg(slurm_msg_t * request_msg,
...
@@ -537,7 +537,7 @@ int slurm_send_recv_controller_msg(slurm_msg_t * request_msg,
* for the response, then closes the connections
* for the response, then closes the connections
* IN request_msg - slurm_msg request
* IN request_msg - slurm_msg request
* OUT response_msg - slurm_msg response
* OUT response_msg - slurm_msg response
* RET List - return list from multiple nodes
* RET List - return list from multiple nodes
(type ret_type_t)
*/
*/
List
slurm_send_recv_node_msg
(
slurm_msg_t
*
request_msg
,
List
slurm_send_recv_node_msg
(
slurm_msg_t
*
request_msg
,
slurm_msg_t
*
response_msg
,
slurm_msg_t
*
response_msg
,
...
@@ -546,7 +546,7 @@ List slurm_send_recv_node_msg(slurm_msg_t * request_msg,
...
@@ -546,7 +546,7 @@ List slurm_send_recv_node_msg(slurm_msg_t * request_msg,
/*
/*
* Open a connection to req->address, send message (forward if told),
* Open a connection to req->address, send message (forward if told),
* req must contain the message already packed in it's buffer variable,
* req must contain the message already packed in it's buffer variable,
* and receive List of
"
ret
urn codes"
from all nodes
* and receive List of ret
_type_t
from all nodes
*/
*/
List
slurm_send_recv_rc_packed_msg
(
slurm_msg_t
*
req
,
int
timeout
);
List
slurm_send_recv_rc_packed_msg
(
slurm_msg_t
*
req
,
int
timeout
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment