/* $NetBSD: rf_disks.h,v 1.14 2005/12/11 12:23:37 christos Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. * * Author: Mark Holland * * Permission to use, copy, modify and distribute this software and * its documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. * * Carnegie Mellon requests users of this software to return to * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 * * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. */ /* * rf_disks.h -- header file for code related to physical disks */ #ifndef _RF__RF_DISKS_H_ #define _RF__RF_DISKS_H_ #include #include #include "rf_archs.h" #include "rf_netbsd.h" /* if a disk is in any of these states, it is inaccessible */ #define RF_DEAD_DISK(_dstat_) (((_dstat_) == rf_ds_spared) || \ ((_dstat_) == rf_ds_reconstructing) || ((_dstat_) == rf_ds_failed) || \ ((_dstat_) == rf_ds_dist_spared)) int rf_ConfigureDisks(RF_ShutdownList_t **, RF_Raid_t *, RF_Config_t *); int rf_ConfigureSpareDisks(RF_ShutdownList_t **, RF_Raid_t *, RF_Config_t *); int rf_ConfigureDisk(RF_Raid_t *, char *, RF_RaidDisk_t *, RF_RowCol_t); int rf_AutoConfigureDisks(RF_Raid_t *, RF_Config_t *, RF_AutoConfig_t *); int rf_CheckLabels(RF_Raid_t *, RF_Config_t *); int rf_add_hot_spare(RF_Raid_t *, RF_SingleComponent_t *); int rf_remove_hot_spare(RF_Raid_t *, RF_SingleComponent_t *); int rf_delete_component(RF_Raid_t *r, RF_SingleComponent_t *); int rf_incorporate_hot_spare(RF_Raid_t *, RF_SingleComponent_t *); #endif /* !_RF__RF_DISKS_H_ */ d/log/sys/kern/sys_module.c?h=lockdoc-9.3-0.6'>sys_module.c
AgeCommit message (Expand)Author
2019-03-01Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as brieflypgoyette
2019-01-28remove uninitialized (and unused)christos
2019-01-27- autoload the compat_80 for modstatchristos
2019-01-27Merge the [pgoyette-compat] branchpgoyette
2018-09-04Introduce KAUTH_REQ_PROCESS_CANSEE_KPTR, and use it in the already-existingmaxv
2018-09-03Rename min/max -> uimin/uimax for better honesty.riastradh
2018-01-18Don't return the address of the kernel modules if the user is notmaxv
2017-06-01remove checks for failure after memory allocation calls that cannot fail:chs
2015-12-12Put the code in charge of handling MODCTL_STAT into a separate function.maxv
2015-11-04Export module flags to userlandpgoyette
2015-08-24to garnish, dust with _KERNEL_OPTpooka
2015-06-19Make handle_modctl_load() usable from compat/netbsd32.martin
2014-07-10don't cast void * in c.christos
2014-07-10Simplify a bitmaxv
2014-07-10Fix a user-controlled memory allocation. kmem_alloc(0) will panic the system.maxv
2012-08-07 Add -A, -a, and -e options to modstat(8) along with kerneljnemeth
2011-07-08avoid some uninitialised variable warnings.mrg
2010-08-21Update the rest of the kernel to conform to the module subsystem's newpgoyette
2010-03-05Move builtin modules to a list in init and load them from therepooka
2009-10-16allow passing a NULL proplib dictionary to modctl(MODCTL_LOAD, ...)jnemeth
2009-04-28copyin the modctl_load_t for the non-x86 world. Fixes PR/41294.skrll
2008-10-22- Be clear about whether module load is explicit or system initiated (auto).ad
2008-05-20If autoloading a module, don't consider the current working directory.ad
2008-05-20Allow module class to be passed to module_load(), as a basic sanity checkad
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-03-02Add support for load-time parameters for modules, which are passed throughjmmv
2008-01-17MODCTL_LOAD and MODCTL_FORCELOAD generally pass a path (if a module namerumble
2008-01-16Add a cast for kauth_authorize_system..ad
2008-01-16Pull in my modules code for review/test/hacking.ad