Print this page
re #13613 rb4516 Tunables needs volatile keyword

*** 20,35 **** */ /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _SYS_RCTL_IMPL_H #define _SYS_RCTL_IMPL_H - #pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/rctl.h> #include <sys/time.h> #include <sys/types.h> #ifdef __cplusplus --- 20,36 ---- */ /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ + /* + * Copyright 2013 Nexenta Systems, Inc. All rights reserved. + */ #ifndef _SYS_RCTL_IMPL_H #define _SYS_RCTL_IMPL_H #include <sys/rctl.h> #include <sys/time.h> #include <sys/types.h> #ifdef __cplusplus
*** 57,68 **** int rcq_local_signal; id_t rcq_local_recipient_pid; hrtime_t rcq_firing_time; } rctl_opaque_t; ! extern uint_t rlim_fd_cur; ! extern uint_t rlim_fd_max; /* Given an array of rctlblk_t calculate the address of the n'th element */ #define RCTLBLK_INC(blk, n) (rctlblk_t *)(((char *)blk) \ + (n * rctlblk_size())) --- 58,69 ---- int rcq_local_signal; id_t rcq_local_recipient_pid; hrtime_t rcq_firing_time; } rctl_opaque_t; ! extern volatile uint_t rlim_fd_cur; ! extern volatile uint_t rlim_fd_max; /* Given an array of rctlblk_t calculate the address of the n'th element */ #define RCTLBLK_INC(blk, n) (rctlblk_t *)(((char *)blk) \ + (n * rctlblk_size()))