Lines Matching defs:library
63 tlm_library_t *library;
66 library = tlm_library(lib);
67 if (library != NULL &&
68 library->tl_drive_count == 0) {
76 * get the library whose number matches
81 tlm_library_t *library = tlm_info.ti_library;
82 while (library != NULL) {
83 if (library->tl_number == lib) {
84 return (library);
86 library = library->tl_next;
99 tlm_library_t *library = tlm_library(lib);
101 if (library == NULL) {
104 drive = library->tl_drive;
121 tlm_library_t *library = tlm_library(lib);
123 if (library != NULL)
124 slot = library->tl_slot;
319 * add a new tape library data blob to the list of libraries
320 * returns the new tape library data blob just created
326 tlm_library_t *library = ndmp_malloc(sizeof (tlm_library_t));
332 library->tl_number = tlm_info.ti_library_count;
333 library->tl_slink = slink;
334 library->tl_capability_robot = TRUE;
335 *p_library = library;
336 return (library->tl_number);
340 * add a new tape drive data blob to the list of drives in a library
346 tlm_library_t *library = tlm_library(lib);
348 tlm_drive_t **p_drive = &library->tl_drive;
353 library->tl_drive_count++;
354 library->tl_capability_drives = TRUE;
356 drive->td_library = library;
357 drive->td_number = library->tl_drive_count;
363 * add a new tape slot data blob to the list of slots in a library
369 tlm_library_t *library = tlm_library(lib);
371 tlm_slot_t **p_slot = &library->tl_slot;
376 library->tl_slot_count++;
377 library->tl_capability_slots = TRUE;
379 slot->ts_library = library;
380 slot->ts_number = library->tl_slot_count;