~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to src/common/node_select.h

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************\
2
2
 *  node_select.h - Define node selection plugin functions.
3
 
 *
4
 
 * $Id: node_select.h 15324 2008-10-07 00:16:53Z da $
5
3
 *****************************************************************************
6
 
 *  Copyright (C) 2004-2006 The Regents of the University of California.
 
4
 *  Copyright (C) 2004-2007 The Regents of the University of California.
 
5
 *  Copyright (C) 2008-2009 Lawrence Livermore National Security.
7
6
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
8
7
 *  Written by Morris Jette <jette1@llnl.gov>
9
 
 *  LLNL-CODE-402394.
 
8
 *  CODE-OCEC-09-009. All rights reserved.
10
9
 *  
11
10
 *  This file is part of SLURM, a resource management program.
12
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
 
11
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
12
 *  Please also read the included file: DISCLAIMER.
13
13
 *  
14
14
 *  SLURM is free software; you can redistribute it and/or modify it under
15
15
 *  the terms of the GNU General Public License as published by the Free
128
128
 * IN node_pts  - current node record
129
129
 * IN cr_info   - type of data to get from the node record 
130
130
 *                (see enum select_data_info)
 
131
 * IN job_ptr   - pointer to the job that's related to this query (may be NULL)
131
132
 * IN/OUT data  - the data to get from node record
132
133
 */
133
134
extern int select_g_get_info_from_plugin (enum select_data_info cr_info, 
 
135
                                          struct job_record *job_ptr,
134
136
                                          void *data);
135
137
 
136
138
/* 
 
139
 * Updated a node configuration. This happens when a node registers with 
 
140
 *      more resources than originally configured (e.g. memory).
 
141
 * IN index  - index into the node record list
 
142
 * RETURN SLURM_SUCCESS on success || SLURM_ERROR else wise
 
143
 */
 
144
extern int select_g_update_node_config (int index);
 
145
 
 
146
/* 
137
147
 * Updated a node state in the plugin, this should happen when a node is
138
148
 * drained or put into a down state then changed back.
139
149
 * IN index  - index into the node record list
238
248
 */
239
249
extern int select_g_job_resume(struct job_record *job_ptr);
240
250
 
241
 
/*
242
 
 * Get number of allocated cores per socket from a job
243
 
 * IN job_id      - identifies the job
244
 
 * IN alloc_index - allocated node index
245
 
 * IN s           - socket index
246
 
 */
247
 
extern int select_g_get_job_cores(uint32_t job_id, int alloc_index, int s);
248
 
 
249
251
/* allocate storage for a select job credential
250
252
 * OUT jobinfo - storage for a select job credential
251
253
 * RET         - slurm error code
282
284
 * RET         - slurm error code
283
285
 */
284
286
extern int select_g_free_jobinfo  (select_jobinfo_t *jobinfo);
285
 
 
286
 
/* 
287
 
 * Get selected data from a given node for a specific job. 
288
 
 * IN node_ptr  - current node record
289
 
 * IN job_ptr   - current job record
290
 
 * IN cr_info   - type of data to get from the node record
291
 
 * IN/OUT data  - the data to get from node record
292
 
 */
293
 
extern int select_g_get_extra_jobinfo (struct node_record *node_ptr, 
294
 
                                       struct job_record *job_ptr, 
295
 
                                       enum select_data_info cr_info,
296
 
                                       void *data);
297
287
 
298
288
/* pack a select job credential into a buffer in machine independent form
299
289
 * IN jobinfo  - the select job credential to be saved
361
351
/* Note reconfiguration or change in partition configuration */
362
352
extern int select_g_reconfigure(void);
363
353
 
 
354
/*  Get configuration specific for this plugin */
 
355
extern List select_g_get_config(void);
 
356
 
364
357
#endif /*__SELECT_PLUGIN_API_H__*/