mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
xen/xenbus: Add 'will_handle' callback support in xenbus_watch_path()
commit 2e85d32b1c865bec703ce0c962221a5e955c52c2 upstream. Some code does not directly make 'xenbus_watch' object and call 'register_xenbus_watch()' but use 'xenbus_watch_path()' instead. This commit adds support of 'will_handle' callback in the 'xenbus_watch_path()' and it's wrapper, 'xenbus_watch_pathfmt()'. This is part of XSA-349 Cc: [email protected] Signed-off-by: SeongJae Park <[email protected]> Reported-by: Michael Kurth <[email protected]> Reported-by: Pawel Wieczorkiewicz <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Signed-off-by: Juergen Gross <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
eac0c12e32
commit
7da6db982e
6 changed files with 17 additions and 7 deletions
|
|
@ -199,10 +199,14 @@ void xenbus_probe(struct work_struct *);
|
|||
|
||||
int xenbus_watch_path(struct xenbus_device *dev, const char *path,
|
||||
struct xenbus_watch *watch,
|
||||
bool (*will_handle)(struct xenbus_watch *,
|
||||
const char *, const char *),
|
||||
void (*callback)(struct xenbus_watch *,
|
||||
const char *, const char *));
|
||||
__printf(4, 5)
|
||||
__printf(5, 6)
|
||||
int xenbus_watch_pathfmt(struct xenbus_device *dev, struct xenbus_watch *watch,
|
||||
bool (*will_handle)(struct xenbus_watch *,
|
||||
const char *, const char *),
|
||||
void (*callback)(struct xenbus_watch *,
|
||||
const char *, const char *),
|
||||
const char *pathfmt, ...);
|
||||
|
|
|
|||
Loading…
Reference in a new issue