~ubuntu-branches/ubuntu/trusty/nilfs-tools/trusty

« back to all changes in this revision

Viewing changes to include/cleaner_exec.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2011-07-10 17:10:21 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110710171021-xkbtr81jprb97iec
Tags: upstream-2.1.0~rc1
ImportĀ upstreamĀ versionĀ 2.1.0~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * cleaner_exec.h - old cleaner control routines
 
3
 *
 
4
 * Licensed under LGPLv2: the complete text of the GNU Lesser General
 
5
 * Public License can be found in COPYING file of the nilfs-utils
 
6
 * package.
 
7
 *
 
8
 * Copyright (C) 2007-2011 Nippon Telegraph and Telephone Corporation.
 
9
 */
 
10
 
 
11
#ifndef NILFS_CLEANER_EXEC_H
 
12
#define NILFS_CLEANER_EXEC_H
 
13
 
 
14
#include <sys/types.h>
 
15
#include <stdint.h>
 
16
 
 
17
#define NILFS_CLEANERD_NAME "nilfs_cleanerd"
 
18
#define PIDOPT_NAME "gcpid"
 
19
 
 
20
int nilfs_launch_cleanerd(const char *device, const char *mntdir,
 
21
                          unsigned long protperiod, pid_t *ppid);
 
22
int nilfs_ping_cleanerd(pid_t pid);
 
23
int nilfs_shutdown_cleanerd(const char *device, pid_t pid);
 
24
 
 
25
extern void (*nilfs_cleaner_logger)(int priority, const char *fmt, ...);
 
26
extern void (*nilfs_cleaner_printf)(const char *fmt, ...);
 
27
extern void (*nilfs_cleaner_flush)(void);
 
28
 
 
29
#endif /* NILFS_CLEANER_EXEC_H */