Files
xen/tools/libs/store/libxenstore.map
T
Juergen Gross 27d908e74e tools/libs/store: add support to use watches with a depth parameter
Add a new xs_watch_depth() function to libxenstore allowing to limit
the scope of a Xenstore watch. It can be used only in case Xenstore is
supporting the XENSTORE_SERVER_FEATURE_WATCHDEPTH feature.

For convenience add a xs_watch_try_depth() wrapper, which will call
xs_watch_depth() if supported and xs_watch() otherwise.

Cache the supported features of Xenstore in order not having to get
them from Xenstore for each call of one of the new functions.

While touching xs.c fix a whitespace issue there.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
2026-04-22 08:57:44 +02:00

58 lines
1.0 KiB
Plaintext

VERS_4.0 {
global:
xs_open;
xs_close;
xs_daemon_open;
xs_domain_open;
xs_daemon_open_readonly;
xs_daemon_close;
xs_daemon_destroy_postfork;
xs_directory;
xs_read;
xs_write;
xs_mkdir;
xs_rm;
xs_restrict;
xs_get_permissions;
xs_set_permissions;
xs_watch;
xs_fileno;
xs_check_watch;
xs_read_watch;
xs_unwatch;
xs_transaction_start;
xs_transaction_end;
xs_introduce_domain;
xs_set_target;
xs_resume_domain;
xs_release_domain;
xs_get_domain_path;
xs_path_is_subpath;
xs_is_domain_introduced;
xs_control_command;
xs_debug_command;
xs_suspend_evtchn_port;
xs_daemon_rundir;
xs_daemon_socket;
xs_daemon_socket_ro;
xs_write_all;
xs_strings_to_perms;
local: *; /* Do not expose anything by default */
};
VERS_4.1 {
global:
xs_get_features_supported;
xs_get_features_domain;
xs_set_features_domain;
} VERS_4.0;
VERS_4.2 {
global:
xs_get_quota_names;
xs_get_global_quota;
xs_set_global_quota;
xs_get_domain_quota;
xs_set_domain_quota;
xs_watch_depth;
xs_watch_try_depth;
} VERS_4.1;