This reduces the size of struct selinfo from 24 to 16 bytes on 64bit 
archs.

struct sel_info is embedded in quite a few other structs (tty, kevent, 
sockbuf, ...). So this may affect libkvm. What's the procedure for 
changing such a struct?

Cheers,
Stefan

diff --git sys/sys/selinfo.h sys/sys/selinfo.h
index 8235c8c0944..9c9f1c7a153 100644
--- sys/sys/selinfo.h
+++ sys/sys/selinfo.h
@@ -41,8 +41,8 @@
  * notified when I/O becomes possible.
  */
 struct selinfo {
-       pid_t   si_seltid;      /* thread to be notified */
        struct  klist si_note;  /* kernel note list */
+       pid_t   si_seltid;      /* thread to be notified */
        short   si_flags;       /* see below */
 };
 #define        SI_COLL 0x0001          /* collision occurred */

Reply via email to