• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/afs/

Lines Matching refs:cell

210  * move to next cell in cells list
226 * display a header line followed by a load of cell lines
230 struct afs_cell *cell = list_entry(v, struct afs_cell, proc_link);
238 /* display one cell per line on subsequent lines */
240 atomic_read(&cell->usage), cell->name);
295 struct afs_cell *cell;
297 cell = afs_cell_create(name, strlen(name), args, false);
298 if (IS_ERR(cell)) {
299 ret = PTR_ERR(cell);
303 afs_put_cell(cell);
304 printk("kAFS: Added new cell '%s'\n", name);
343 * - to initialize rootcell: echo "cell.name:192.168.231.14"
386 * initialise /proc/fs/afs/<cell>/
388 int afs_proc_cell_setup(struct afs_cell *cell)
392 _enter("%p{%s}", cell, cell->name);
394 cell->proc_dir = proc_mkdir(cell->name, proc_afs);
395 if (!cell->proc_dir)
398 p = proc_create_data("servers", 0, cell->proc_dir,
399 &afs_proc_cell_servers_fops, cell);
403 p = proc_create_data("vlservers", 0, cell->proc_dir,
404 &afs_proc_cell_vlservers_fops, cell);
408 p = proc_create_data("volumes", 0, cell->proc_dir,
409 &afs_proc_cell_volumes_fops, cell);
417 remove_proc_entry("vlservers", cell->proc_dir);
419 remove_proc_entry("servers", cell->proc_dir);
421 remove_proc_entry(cell->name, proc_afs);
428 * remove /proc/fs/afs/<cell>/
430 void afs_proc_cell_remove(struct afs_cell *cell)
434 remove_proc_entry("volumes", cell->proc_dir);
435 remove_proc_entry("vlservers", cell->proc_dir);
436 remove_proc_entry("servers", cell->proc_dir);
437 remove_proc_entry(cell->name, proc_afs);
443 * open "/proc/fs/afs/<cell>/volumes" which provides a summary of extant cells
447 struct afs_cell *cell;
451 cell = PDE(inode)->data;
452 if (!cell)
460 m->private = cell;
466 * close the file and release the ref to the cell
479 struct afs_cell *cell = m->private;
481 _enter("cell=%p pos=%Ld", cell, *_pos);
484 down_read(&cell->vl_sem);
485 return seq_list_start_head(&cell->vl_list, *_pos);
489 * move to next cell in cells list
494 struct afs_cell *cell = p->private;
496 _enter("cell=%p pos=%Ld", cell, *_pos);
497 return seq_list_next(v, &cell->vl_list, _pos);
505 struct afs_cell *cell = p->private;
507 up_read(&cell->vl_sem);
525 struct afs_cell *cell = m->private;
530 if (v == &cell->vl_list) {
535 /* display one cell per line on subsequent lines */
548 * open "/proc/fs/afs/<cell>/vlservers" which provides a list of volume
553 struct afs_cell *cell;
557 cell = PDE(inode)->data;
558 if (!cell)
566 m->private = cell;
572 * close the file and release the ref to the cell
586 struct afs_cell *cell = m->private;
589 _enter("cell=%p pos=%Ld", cell, *_pos);
592 down_read(&cell->vl_sem);
599 if (pos >= cell->vl_naddrs)
602 return &cell->vl_addrs[pos];
606 * move to next cell in cells list
611 struct afs_cell *cell = p->private;
614 _enter("cell=%p{nad=%u} pos=%Ld", cell, cell->vl_naddrs, *_pos);
618 if (pos >= cell->vl_naddrs)
621 return &cell->vl_addrs[pos];
629 struct afs_cell *cell = p->private;
631 up_read(&cell->vl_sem);
647 /* display one cell per line on subsequent lines */
653 * open "/proc/fs/afs/<cell>/servers" which provides a summary of active
658 struct afs_cell *cell;
662 cell = PDE(inode)->data;
663 if (!cell)
671 m->private = cell;
676 * close the file and release the ref to the cell
691 struct afs_cell *cell = m->private;
693 _enter("cell=%p pos=%Ld", cell, *_pos);
696 read_lock(&cell->servers_lock);
697 return seq_list_start_head(&cell->servers, *_pos);
701 * move to next cell in cells list
706 struct afs_cell *cell = p->private;
708 _enter("cell=%p pos=%Ld", cell, *_pos);
709 return seq_list_next(v, &cell->servers, _pos);
718 struct afs_cell *cell = p->private;
720 read_unlock(&cell->servers_lock);
728 struct afs_cell *cell = m->private;
733 if (v == &cell->servers) {
738 /* display one cell per line on subsequent lines */