usb: gadget: f_fs: Prevent panic due to failure of huge size buffer allocation
[platform/kernel/linux-rpi.git] / ipc / kdbus / notify.h
1 /*
2  * Copyright (C) 2013-2015 Kay Sievers
3  * Copyright (C) 2013-2015 Greg Kroah-Hartman <gregkh@linuxfoundation.org>
4  * Copyright (C) 2013-2015 Daniel Mack <daniel@zonque.org>
5  * Copyright (C) 2013-2015 David Herrmann <dh.herrmann@gmail.com>
6  * Copyright (C) 2013-2015 Linux Foundation
7  * Copyright (C) 2014-2015 Djalal Harouni <tixxdz@opendz.org>
8  *
9  * kdbus is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU Lesser General Public License as published by the
11  * Free Software Foundation; either version 2.1 of the License, or (at
12  * your option) any later version.
13  */
14
15 #ifndef __KDBUS_NOTIFY_H
16 #define __KDBUS_NOTIFY_H
17
18 struct kdbus_bus;
19
20 int kdbus_notify_id_change(struct kdbus_bus *bus, u64 type, u64 id, u64 flags);
21 int kdbus_notify_reply_timeout(struct kdbus_bus *bus, u64 id, u64 cookie);
22 int kdbus_notify_reply_dead(struct kdbus_bus *bus, u64 id, u64 cookie);
23 int kdbus_notify_name_change(struct kdbus_bus *bus, u64 type,
24                              u64 old_id, u64 new_id,
25                              u64 old_flags, u64 new_flags,
26                              const char *name);
27 void kdbus_notify_flush(struct kdbus_bus *bus);
28 void kdbus_notify_free(struct kdbus_bus *bus);
29
30 #endif