~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to include/xen/xenbus.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include <linux/device.h>
38
38
#include <linux/notifier.h>
39
39
#include <linux/mutex.h>
 
40
#include <linux/export.h>
40
41
#include <linux/completion.h>
41
42
#include <linux/init.h>
42
43
#include <linux/slab.h>
156
157
        __attribute__((format(scanf, 4, 5)));
157
158
 
158
159
/* Single printf and write: returns -errno or 0. */
 
160
__printf(4, 5)
159
161
int xenbus_printf(struct xenbus_transaction t,
160
 
                  const char *dir, const char *node, const char *fmt, ...)
161
 
        __attribute__((format(printf, 4, 5)));
 
162
                  const char *dir, const char *node, const char *fmt, ...);
162
163
 
163
164
/* Generic read function: NULL-terminated triples of name,
164
165
 * sprintf-style type string, and pointer. Returns 0 or errno.*/
200
201
                      struct xenbus_watch *watch,
201
202
                      void (*callback)(struct xenbus_watch *,
202
203
                                       const char **, unsigned int));
 
204
__printf(4, 5)
203
205
int xenbus_watch_pathfmt(struct xenbus_device *dev, struct xenbus_watch *watch,
204
206
                         void (*callback)(struct xenbus_watch *,
205
207
                                          const char **, unsigned int),
206
 
                         const char *pathfmt, ...)
207
 
        __attribute__ ((format (printf, 4, 5)));
 
208
                         const char *pathfmt, ...);
208
209
 
209
210
int xenbus_switch_state(struct xenbus_device *dev, enum xenbus_state new_state);
210
211
int xenbus_grant_ring(struct xenbus_device *dev, unsigned long ring_mfn);
223
224
 
224
225
enum xenbus_state xenbus_read_driver_state(const char *path);
225
226
 
 
227
__printf(3, 4)
226
228
void xenbus_dev_error(struct xenbus_device *dev, int err, const char *fmt, ...);
 
229
__printf(3, 4)
227
230
void xenbus_dev_fatal(struct xenbus_device *dev, int err, const char *fmt, ...);
228
231
 
229
232
const char *xenbus_strstate(enum xenbus_state state);