X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Fuser-prim.h;h=b65148a7fe0c5433385b81c5804814f21a3138d8;hb=c8da7bfbe0505175869973b25281b152940774b0;hp=7aa0258959a175b3d712e723f9293835f6392f7f;hpb=d70db3335f52cc49f5e01858d27b0ccd61036c62;p=fs%2Flustre-release.git diff --git a/libcfs/include/libcfs/user-prim.h b/libcfs/include/libcfs/user-prim.h index 7aa0258..b65148a 100644 --- a/libcfs/include/libcfs/user-prim.h +++ b/libcfs/include/libcfs/user-prim.h @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -26,7 +24,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -138,16 +136,18 @@ static inline int cfs_psdev_deregister(cfs_psdev_t *foo) return 0; } -#define cfs_lock_kernel() do {} while (0) #define cfs_sigfillset(l) do {} while (0) #define cfs_recalc_sigpending(l) do {} while (0) /* Fine, crash, but stop giving me compile warnings */ -#define cfs_kernel_thread(l,m,n) (LBUG(), (int)l) #define cfs_kthread_run(fn,d,fmt,...) LBUG() +#define CFS_DAEMON_FLAGS 0 + +#define CFS_L1_CACHE_ALIGN(x) (x) + #ifdef HAVE_LIBPTHREAD typedef int (*cfs_thread_t)(void *); -int cfs_create_thread(cfs_thread_t func, void *arg); +int cfs_create_thread(cfs_thread_t func, void *arg, unsigned long flags); #else #define cfs_create_thread(l,m) LBUG() #endif @@ -200,6 +200,8 @@ typedef struct cfs_group_info { # define max(x,y) ((x)>(y) ? (x) : (y)) #endif +#define cfs_get_random_bytes_prim(val, size) (*val) = 0 + /* utility libcfs init/fini entries */ #ifdef __WINNT__ extern int libcfs_arch_init(void);