summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/blob.h
blob: 2595a15f78ac3f133c47b834d2e73f39a3a11432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2019 Oracle.  All Rights Reserved.
 * Author: Darrick J. Wong <darrick.wong@oracle.com>
 */
#ifndef __XFS_SCRUB_BLOB_H__
#define __XFS_SCRUB_BLOB_H__

struct xblob {
	struct list_head	list;
};

typedef void			*xblob_cookie;

struct xblob *xblob_init(void);
void xblob_destroy(struct xblob *blob);
int xblob_get(struct xblob *blob, xblob_cookie cookie, void *ptr,
		uint32_t size);
int xblob_put(struct xblob *blob, xblob_cookie *cookie, void *ptr,
		uint32_t size);
int xblob_free(struct xblob *blob, xblob_cookie cookie);

#endif /* __XFS_SCRUB_BLOB_H__ */