Path: blob/main/sys/contrib/openzfs/cmd/zed/agents/zfs_agents.h
48529 views
// SPDX-License-Identifier: CDDL-1.01/*2* CDDL HEADER START3*4* The contents of this file are subject to the terms of the5* Common Development and Distribution License Version 1.0 (CDDL-1.0).6* You can obtain a copy of the license from the top-level file7* "OPENSOLARIS.LICENSE" or at <http://opensource.org/licenses/CDDL-1.0>.8* You may not use this file except in compliance with the license.9*10* CDDL HEADER END11*/1213/*14* Copyright (c) 2016, Intel Corporation.15*/1617#ifndef ZFS_AGENTS_H18#define ZFS_AGENTS_H1920#include <libzfs.h>21#include <libnvpair.h>222324#ifdef __cplusplus25extern "C" {26#endif2728/*29* Agent abstraction presented to ZED30*/31extern void zfs_agent_init(libzfs_handle_t *);32extern void zfs_agent_fini(void);33extern void zfs_agent_post_event(const char *, const char *, nvlist_t *);3435/*36* ZFS Sysevent Linkable Module (SLM)37*/38extern int zfs_slm_init(void);39extern void zfs_slm_fini(void);40extern void zfs_slm_event(const char *, const char *, nvlist_t *);4142#ifdef __cplusplus43}44#endif4546#endif /* !ZFS_AGENTS_H */474849