Re: UVM typedef struct

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Seebach
Date: Tuesday, August 11, 2009 - 1:10 am

In message <20090811074826.GA16058@netbsd.org>, David Holland writes:

True.


Let's say we commit to you that, definitely, silly_t is a pointer.

Do you now know, without checking the API docs, whether or not bar is
valid?  Well, uhm.  No.  (And if the function is a function-like macro,
you don't even know that foo and bar are still equal.)

Okay, but what if we say that, for sure, silly_t is not a pointer, but an
opaque non-pointer object.  Now do you know?  ... Well, actually, you still
don't know, because it could be that silly_t is a structure CONTAINING at
least one pointer.  In which case bar might well now contain an invalid
pointer, or a pointer to an obsolete object, or... well, we just don't know.

So in short, if types can be opaque, you have already lost.

-s
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)