]> Git Repo - linux.git/blob - include/linux/stackdepot.h
hinic: add firmware update support
[linux.git] / include / linux / stackdepot.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * A generic stack depot implementation
4  *
5  * Author: Alexander Potapenko <[email protected]>
6  * Copyright (C) 2016 Google, Inc.
7  *
8  * Based on code by Dmitry Chernenkov.
9  */
10
11 #ifndef _LINUX_STACKDEPOT_H
12 #define _LINUX_STACKDEPOT_H
13
14 typedef u32 depot_stack_handle_t;
15
16 depot_stack_handle_t stack_depot_save(unsigned long *entries,
17                                       unsigned int nr_entries, gfp_t gfp_flags);
18
19 unsigned int stack_depot_fetch(depot_stack_handle_t handle,
20                                unsigned long **entries);
21
22 unsigned int filter_irq_stacks(unsigned long *entries, unsigned int nr_entries);
23
24 #endif
This page took 0.029022 seconds and 4 git commands to generate.