From e8a7d9c822ae4be4533f9e34885816a5b7831154 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 5 Jan 2012 15:48:24 -0800 Subject: Add a sys_get_number_of_cores() function that calls sysconf or sysctl and tunes the aio threads. --- source3/include/proto.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/include/proto.h') 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); -- cgit