~ubuntu-branches/ubuntu/wily/spl-linux/wily

« back to all changes in this revision

Viewing changes to include/sys/sysmacros.h

  • Committer: Package Import Robot
  • Author(s): Liang Guo
  • Date: 2014-07-31 15:16:53 UTC
  • Revision ID: package-import@ubuntu.com-20140731151653-tgao12alohj26jcs
Tags: upstream-0.6.3+git20140731
ImportĀ upstreamĀ versionĀ 0.6.3+git20140731

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
#define minclsyspri                     (MAX_RT_PRIO)
96
96
#define maxclsyspri                     (MAX_PRIO-1)
97
97
 
 
98
#ifndef NICE_TO_PRIO
98
99
#define NICE_TO_PRIO(nice)              (MAX_RT_PRIO + (nice) + 20)
 
100
#endif
 
101
#ifndef PRIO_TO_NICE
99
102
#define PRIO_TO_NICE(prio)              ((prio) - MAX_RT_PRIO - 20)
 
103
#endif
100
104
 
101
105
/* Missing macros
102
106
 */
143
147
/* Missing globals */
144
148
extern char spl_version[32];
145
149
extern unsigned long spl_hostid;
146
 
extern char hw_serial[11];
147
150
 
148
151
/* Missing misc functions */
149
152
extern int highbit(unsigned long i);
 
153
extern int highbit64(uint64_t i);
150
154
extern uint32_t zone_get_hostid(void *zone);
151
155
extern void spl_setup(void);
152
156
extern void spl_cleanup(void);
169
173
#ifndef roundup
170
174
#define roundup(x, y)           ((((x) + ((y) - 1)) / (y)) * (y))
171
175
#endif
 
176
#ifndef howmany
 
177
#define howmany(x, y)           (((x) + ((y) - 1)) / (y))
 
178
#endif
172
179
 
173
180
/*
174
181
 * Compatibility macros/typedefs needed for Solaris -> Linux port