lvs-users
|
To: | lvs-users@xxxxxxxxxxxxxxxxxxxxxx |
---|---|
Subject: | Re: [PATCH] additional proc entries for synchronisation |
From: | Roberto Nibali <ratz@xxxxxx> |
Date: | Thu, 21 Nov 2002 17:11:05 +0100 |
Jacob Coby wrote: #define NR_CONNS ((1 << \ (8 * sizeof((*((struct ip_vs_sync_mesg *(*)(void))0))()->nr_conns)))-1)Holy confusing syntax, Batman! Hehe, I know, but I'm a bad C-programmer [that's why I mainly focus on kernel hacking in these days :)] so I didn't know how I could do it in a different way. I would like to learn how to get the size of a member of a struct without creating an instance of the struct itself. Do you know a better way? Cheers, Roberto Nibali, ratz -- echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc |
Previous by Date: | Re: [PATCH] additional proc entries for synchronisation, Jacob Coby |
---|---|
Next by Date: | Re: [PATCH] additional proc entries for synchronisation, Martijn Klingens |
Previous by Thread: | Re: [PATCH] additional proc entries for synchronisation, Jacob Coby |
Next by Thread: | Re: [PATCH] additional proc entries for synchronisation, Martijn Klingens |
Indexes: | [Date] [Thread] [Top] [All Lists] |