Re: UVM typedef struct

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Holland
Date: Wednesday, July 22, 2009 - 9:45 am

On Wed, Jul 22, 2009 at 04:39:54PM +0000, Chuck Cranor wrote:
 > I can explain why the code is the way it is:
 > 
 > Before I wrote the UVM code, I spent alot of time studying other VM
 > code.   I found that having these kinds of typedefs for structures 
 > made the code harder to read (because you don't know if you are dealing
 > with a structure, or a pointer to a structure --- folks do it both ways).
 > So when I wrote UVM I attempted to remove as much of this ambiguity as 
 > possible.  I think the "struct"'s and "*"'s are useful semantic cues
 > that make it easier for new folks to understand the code.

This is what I've been saying also, but I haven't been getting much
traction. :-|

-- 
David A. Holland
dholland@netbsd.org
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
UVM typedef struct, Mindaugas Rasiukevicius, (Mon Jun 15, 12:09 pm)
Re: UVM typedef struct, der Mouse, (Mon Jun 15, 12:13 pm)
Re: UVM typedef struct, Masao Uebayashi, (Mon Jun 15, 9:43 pm)
Re: UVM typedef struct, Antti Kantee, (Mon Jun 15, 10:37 pm)
Re: UVM typedef struct, Peter Seebach, (Mon Jun 15, 10:45 pm)
Re: UVM typedef struct, Mindaugas Rasiukevicius, (Tue Jun 16, 2:19 am)
Re: UVM typedef struct, Eric Haszlakiewicz, (Tue Jun 16, 7:55 am)
re: UVM typedef struct, matthew green, (Tue Jun 16, 8:16 am)
Re: UVM typedef struct, David Laight, (Tue Jun 16, 8:46 am)
Re: UVM typedef struct, Antti Kantee, (Tue Jun 16, 12:02 pm)
Re: UVM typedef struct, Mindaugas Rasiukevicius, (Tue Jun 16, 1:00 pm)
re: UVM typedef struct, matthew green, (Tue Jun 16, 1:14 pm)
Re: UVM typedef struct, Antti Kantee, (Tue Jun 16, 4:21 pm)
Re: UVM typedef struct, der Mouse, (Tue Jun 16, 4:42 pm)
Re: UVM typedef struct, Masao Uebayashi, (Tue Jun 16, 5:28 pm)
Re: UVM typedef struct, Eric Haszlakiewicz, (Tue Jun 16, 9:47 pm)
re: UVM typedef struct, matthew green, (Tue Jun 16, 11:02 pm)
Re: UVM typedef struct, David Laight, (Tue Jun 16, 11:42 pm)
Re: UVM typedef struct, Reinoud Zandijk, (Wed Jun 17, 4:01 am)
Re: UVM typedef struct, Terry Moore, (Wed Jun 17, 2:05 pm)
Re: UVM typedef struct, James Chacon, (Wed Jun 17, 3:14 pm)
Re: UVM typedef struct, Terry Moore, (Wed Jun 17, 4:22 pm)
Re: UVM typedef struct, David Holland, (Fri Jun 19, 10:18 am)
Re: UVM typedef struct, Greg A. Woods, (Fri Jun 19, 10:51 am)
Re: UVM typedef struct, David Holland, (Fri Jun 19, 11:21 am)
Re: UVM typedef struct, Greg A. Woods, (Fri Jun 19, 11:57 am)
Re: UVM typedef struct, David Holland, (Fri Jun 19, 12:04 pm)
Re: UVM typedef struct, tlaronde, (Sat Jun 20, 3:05 am)
Re: UVM typedef struct, Chuck Cranor, (Wed Jul 22, 9:39 am)
Re: UVM typedef struct, David Holland, (Wed Jul 22, 9:45 am)
Re: UVM typedef struct, Jason Thorpe, (Mon Aug 10, 5:42 pm)
Re: UVM typedef struct, Jason Thorpe, (Mon Aug 10, 5:43 pm)
Re: UVM typedef struct, Jason Thorpe, (Mon Aug 10, 5:45 pm)
Re: UVM typedef struct, Jason Thorpe, (Mon Aug 10, 5:50 pm)
Re: UVM typedef struct, David Holland, (Mon Aug 10, 11:37 pm)
Re: UVM typedef struct, David Laight, (Mon Aug 10, 11:44 pm)
Re: UVM typedef struct, David Holland, (Mon Aug 10, 11:45 pm)
Re: UVM typedef struct, Peter Seebach, (Tue Aug 11, 12:18 am)
Re: UVM typedef struct, Matthew Mondor, (Tue Aug 11, 12:19 am)
Re: UVM typedef struct, der Mouse, (Tue Aug 11, 12:38 am)
Re: UVM typedef struct, David Holland, (Tue Aug 11, 12:48 am)
Re: UVM typedef struct, David Holland, (Tue Aug 11, 12:50 am)
Re: UVM typedef struct, Peter Seebach, (Tue Aug 11, 1:10 am)
Re: UVM typedef struct, David Holland, (Tue Aug 11, 9:35 am)
Re: UVM typedef struct, Peter Seebach, (Tue Aug 11, 10:16 am)
Re: UVM typedef struct, Eric Haszlakiewicz, (Tue Aug 11, 10:42 am)
Re: UVM typedef struct, David Holland, (Tue Aug 11, 11:00 am)
Re: UVM typedef struct, Eric Haszlakiewicz, (Wed Aug 12, 9:42 am)
Re: UVM typedef struct, David Holland, (Wed Aug 12, 9:50 am)
Re: UVM typedef struct, Eric Haszlakiewicz, (Wed Aug 12, 11:29 am)
Re: UVM typedef struct, Tonnerre LOMBARD, (Wed Aug 12, 1:32 pm)
Re: UVM typedef struct, Iain Hibbert, (Wed Aug 12, 2:17 pm)
Re: UVM typedef struct, Tonnerre LOMBARD, (Wed Aug 12, 3:07 pm)
Re: UVM typedef struct, James Chacon, (Wed Aug 12, 5:21 pm)
Re: UVM typedef struct, Iain Hibbert, (Wed Aug 12, 11:19 pm)
Re: UVM typedef struct, Alan Barrett, (Thu Aug 13, 12:00 am)
Re: UVM typedef struct, Tonnerre LOMBARD, (Thu Aug 13, 11:55 am)
Re: UVM typedef struct, Tonnerre LOMBARD, (Thu Aug 13, 11:57 am)