X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afs.h;h=c7fecd881ef3e9e98daac0ccaa3264d4343dc667;hp=4c171a8e08f2d3c91c1055363c9a457d09d98b30;hb=d2e164526bed7f523043b7e4ec5bd282d5bc6f19;hpb=2bc092485c67b68d81cc29643d3e8a764d1a26a0 diff --git a/afs.h b/afs.h index 4c171a8e..c7fecd88 100644 --- a/afs.h +++ b/afs.h @@ -110,6 +110,7 @@ struct ls_data { int make_status_items(struct ls_data *d, struct para_buffer *pb); void make_empty_status_items(char *buf); +/** At most that many bytes will be passed from afs to para_server. */ #define VERBOSE_LS_OUTPUT_SIZE 4096 /* @@ -161,6 +162,14 @@ struct pattern_match_data { }; /* afs */ +/** + * Afs command handlers run as a process which is not related to the afs + * process, i.e. they can not change the address space of afs directly. + * Therefore afs commands typically consist of two functions: The command + * handler and the corresponding callback function that runs in afs context. + * + * \sa send_callback_request(). + */ typedef int callback_function(const struct osl_object *, struct osl_object *); __noreturn void afs_init(uint32_t cookie, int socket_fd); void afs_event(enum afs_events event, struct para_buffer *pb,