Since you pass in a void pointer, it can point to anything, including a structure, as per the following example:
typedef struct s_xyzzy {
int num;
char name[20];
float secret;
} xyzzy;
xyzzy plugh;
plugh.num = 42;
strcpy (plugh.name, "paxdiablo");
plugh.secret = 3.141592653589;
status = pthread_create (&server_thread, NULL, disk_access, &plugh);
// pthread_join down here somewhere to ensure plugh
// stay in scope while server_thread is using it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…