summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-01-05 15:48:24 -0800
committerJeremy Allison <jra@samba.org>2012-01-06 02:42:25 +0100
commite8a7d9c822ae4be4533f9e34885816a5b7831154 (patch)
tree50352a0092e47131f3858f664740a5cbee8fdd44 /source3/include
parent200c22b9940f8e222f20f95691bc61dcb883b609 (diff)
downloadsamba-e8a7d9c822ae4be4533f9e34885816a5b7831154.tar.gz
samba-e8a7d9c822ae4be4533f9e34885816a5b7831154.tar.bz2
samba-e8a7d9c822ae4be4533f9e34885816a5b7831154.zip
Add a sys_get_number_of_cores() function that calls sysconf or sysctl
and tunes the aio threads.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 2c12a5f5a5..7a7f60a765 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -390,6 +390,7 @@ int sys_lsetxattr (const char *path, const char *name, const void *value, size_t
int sys_fsetxattr (int filedes, const char *name, const void *value, size_t size, int flags);
uint32 unix_dev_major(SMB_DEV_T dev);
uint32 unix_dev_minor(SMB_DEV_T dev);
+int sys_get_number_of_cores(void);
int sys_aio_read(SMB_STRUCT_AIOCB *aiocb);
int sys_aio_write(SMB_STRUCT_AIOCB *aiocb);
ssize_t sys_aio_return(SMB_STRUCT_AIOCB *aiocb);