tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: UVM typedef struct
> I would like to typedef and replace the struct usage in UVM, so that
> struct vm_map would become vm_map_t, struct vm_anon - vm_anon_t, and
> so on. It increases readability and makes UVM consistent in this
> respect with other subsystems (cf. sys/kern). Any concerns?
This sounds good. But I would utter a plea to please _not_ start
creating similar typedefs for pointers to those structures. I, for
one, find it borders on crippling for readability to see something like
"foobar_t something;" and not realize until much later that it's
actually a pointer.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index