Valid File-Objects to back Sections

I was wondering, is it possible for a usermode-socket handle to back
a file mapping aka Section object.

I realize that these are represented somehow as ‘pipes’ and that might
prevent it. But what fundamentally is the difference between a pipe-type
file object and a disk-file type file object. Why is it that one can be
used to back a section and well, I don’t know yet about the other one.
Don’t debate this too much, its more of a question of curiosity than a
solution to a problem im having.

Asa

No, AFD does not support memory mapped files.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Asa Yeamans”
To: “Windows System Software Devs Interest List”
Sent: Sunday, June 05, 2005 12:32 PM
Subject: [ntdev] Valid File-Objects to back Sections

I was wondering, is it possible for a usermode-socket handle to back
a file mapping aka Section object.

I realize that these are represented somehow as ‘pipes’ and that might
prevent it. But what fundamentally is the difference between a pipe-type
file object and a disk-file type file object. Why is it that one can be
used to back a section and well, I don’t know yet about the other one.
Don’t debate this too much, its more of a question of curiosity than a
solution to a problem im having.

Asa


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

That I know, a pipe is just a conduit for a stream of bytes - it
doesn’t necessarily involve any data permanence. So, you put the
data in, data comes out, and the data’s gone: no storage is
involved except the buffering required to implement the pipe. A
file, in the other hand, entails storage, or permanence, even if
that is only temporary during the time the file’s open. In fact,
a pipe can be little more than a conduit for Remote Procedure
Call, it’s an interactive, dynamic and non-permanent entity.

The concept is very well described in Thompson and Ritchie’s
original Unix papers. You can also look at the _pipe
documentation for the CRT library, just turn on your MSVC.NET,
go into Help, ask for “_pipe”. In there you find the following
remark:

===========================
A pipe is an artificial I/O channel that a program uses to pass
information to other programs. A pipe is similar to a file in
that it has a file pointer, a file descriptor, or both, and can
be read from or written to using the standard library’s input
and output functions. However, a pipe does not represent a
specific file or device. Instead, it represents temporary
storage in memory that is independent of the program’s own
memory and is controlled entirely by the operating system.

I’m not that familiar with the ins and outs of Windows, but it
looks like Windows pipes have kept at least some of the original
Unix flavor.

Alberto.

----- Original Message -----
From: “Asa Yeamans”
To: “Windows System Software Devs Interest List”

Sent: Sunday, June 05, 2005 4:32 AM
Subject: [ntdev] Valid File-Objects to back Sections

I was wondering, is it possible for a usermode-socket handle to
back
a file mapping aka Section object.

I realize that these are represented somehow as ‘pipes’ and that
might
prevent it. But what fundamentally is the difference between a
pipe-type
file object and a disk-file type file object. Why is it that one
can be
used to back a section and well, I don’t know yet about the
other one.
Don’t debate this too much, its more of a question of curiosity
than a
solution to a problem im having.

Asa


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com

What does AFD stand for again?
Associated File Descriptor?

Tho it would be pretty cool to be able to read from a socket in the same way
that you can read from a file with paging IO and such… but i guess now that
i actually *think* about it, this makes sense.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Sunday, June 05, 2005 4:42 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Valid File-Objects to back Sections

No, AFD does not support memory mapped files.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Asa Yeamans”
To: “Windows System Software Devs Interest List”
Sent: Sunday, June 05, 2005 12:32 PM
Subject: [ntdev] Valid File-Objects to back Sections

I was wondering, is it possible for a usermode-socket handle to back
a file mapping aka Section object.

I realize that these are represented somehow as ‘pipes’ and that might
prevent it. But what fundamentally is the difference between a pipe-type
file object and a disk-file type file object. Why is it that one can be
used to back a section and well, I don’t know yet about the other one.
Don’t debate this too much, its more of a question of curiosity than a
solution to a problem im having.

Asa


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@rivin.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

Ancillary Function Driver.
This is how Microsoft called the kernel module which implements sockets.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Asa Yeamans”
To: “Windows System Software Devs Interest List”
Sent: Sunday, June 05, 2005 7:45 PM
Subject: RE: [ntdev] Valid File-Objects to back Sections

What does AFD stand for again?
Associated File Descriptor?

Tho it would be pretty cool to be able to read from a socket in the same way
that you can read from a file with paging IO and such… but i guess now that
i actually think about it, this makes sense.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Sunday, June 05, 2005 4:42 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Valid File-Objects to back Sections

No, AFD does not support memory mapped files.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Asa Yeamans”
To: “Windows System Software Devs Interest List”
Sent: Sunday, June 05, 2005 12:32 PM
Subject: [ntdev] Valid File-Objects to back Sections

I was wondering, is it possible for a usermode-socket handle to back
a file mapping aka Section object.

I realize that these are represented somehow as ‘pipes’ and that might
prevent it. But what fundamentally is the difference between a pipe-type
file object and a disk-file type file object. Why is it that one can be
used to back a section and well, I don’t know yet about the other one.
Don’t debate this too much, its more of a question of curiosity than a
solution to a problem im having.

Asa


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@rivin.net
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

AFAIK, AFD == Address Family Driver, ie the driver that back AF_Xxx
families for sockets.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Sunday, June 05, 2005 8:53 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Valid File-Objects to back Sections

Ancillary Function Driver.
This is how Microsoft called the kernel module which implements
sockets.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Asa Yeamans”
To: “Windows System Software Devs Interest List”
Sent: Sunday, June 05, 2005 7:45 PM
Subject: RE: [ntdev] Valid File-Objects to back Sections

What does AFD stand for again?
Associated File Descriptor?

Tho it would be pretty cool to be able to read from a socket in the same
way
that you can read from a file with paging IO and such… but i guess now
that
i actually think about it, this makes sense.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Sunday, June 05, 2005 4:42 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Valid File-Objects to back Sections

No, AFD does not support memory mapped files.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Asa Yeamans”
To: “Windows System Software Devs Interest List”
Sent: Sunday, June 05, 2005 12:32 PM
Subject: [ntdev] Valid File-Objects to back Sections

I was wondering, is it possible for a usermode-socket handle to back
a file mapping aka Section object.

I realize that these are represented somehow as ‘pipes’ and that might
prevent it. But what fundamentally is the difference between a pipe-type
file object and a disk-file type file object. Why is it that one can be
used to back a section and well, I don’t know yet about the other one.
Don’t debate this too much, its more of a question of curiosity than a
solution to a problem im having.

Asa


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@rivin.net
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I once had the theory that this stood for ‘another f’ing driver’ but I’ve
since abandoned such nonsense :slight_smile:

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Sunday, June 05, 2005 1:13 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Valid File-Objects to back Sections

AFAIK, AFD == Address Family Driver, ie the driver that back
AF_Xxx families for sockets.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim
S. Shatskih
Sent: Sunday, June 05, 2005 8:53 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Valid File-Objects to back Sections

Ancillary Function Driver.
This is how Microsoft called the kernel module which
implements sockets.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Asa Yeamans”
> To: “Windows System Software Devs Interest List”
> Sent: Sunday, June 05, 2005 7:45 PM
> Subject: RE: [ntdev] Valid File-Objects to back Sections
>
>
> What does AFD stand for again?
> Associated File Descriptor?
>
> Tho it would be pretty cool to be able to read from a socket
> in the same
> way
> that you can read from a file with paging IO and such… but
> i guess now
> that
> i actually think about it, this makes sense.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim
> S. Shatskih
> Sent: Sunday, June 05, 2005 4:42 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Valid File-Objects to back Sections
>
>
> No, AFD does not support memory mapped files.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Asa Yeamans”
> To: “Windows System Software Devs Interest List”
> Sent: Sunday, June 05, 2005 12:32 PM
> Subject: [ntdev] Valid File-Objects to back Sections
>
>
> I was wondering, is it possible for a usermode-socket handle to back
> a file mapping aka Section object.
>
> I realize that these are represented somehow as ‘pipes’ and that might
> prevent it. But what fundamentally is the difference between
> a pipe-type
> file object and a disk-file type file object. Why is it that
> one can be
> used to back a section and well, I don’t know yet about the other one.
> Don’t debate this too much, its more of a question of curiosity than a
> solution to a problem im having.
>
> Asa
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
> argument:
> ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@rivin.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
> argument:
> ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Look at VersionInfo of this binary.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Mark Roddy”
To: “Windows System Software Devs Interest List”
Sent: Sunday, June 05, 2005 9:34 PM
Subject: RE: [ntdev] Valid File-Objects to back Sections

> I once had the theory that this stood for ‘another f’ing driver’ but I’ve
> since abandoned such nonsense :slight_smile:
>
>
> =====================
> Mark Roddy DDK MVP
> Windows 2003/XP/2000 Consulting
> Hollis Technology Solutions 603-321-1032
> www.hollistech.com
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
> > Sent: Sunday, June 05, 2005 1:13 PM
> > To: Windows System Software Devs Interest List
> > Subject: RE: [ntdev] Valid File-Objects to back Sections
> >
> > AFAIK, AFD == Address Family Driver, ie the driver that back
> > AF_Xxx families for sockets.
> >
> > d
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim
> > S. Shatskih
> > Sent: Sunday, June 05, 2005 8:53 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] Valid File-Objects to back Sections
> >
> > Ancillary Function Driver.
> > This is how Microsoft called the kernel module which
> > implements sockets.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> > ----- Original Message -----
> > From: “Asa Yeamans”
> > To: “Windows System Software Devs Interest List”
> > Sent: Sunday, June 05, 2005 7:45 PM
> > Subject: RE: [ntdev] Valid File-Objects to back Sections
> >
> >
> > What does AFD stand for again?
> > Associated File Descriptor?
> >
> > Tho it would be pretty cool to be able to read from a socket
> > in the same
> > way
> > that you can read from a file with paging IO and such… but
> > i guess now
> > that
> > i actually think about it, this makes sense.
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim
> > S. Shatskih
> > Sent: Sunday, June 05, 2005 4:42 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] Valid File-Objects to back Sections
> >
> >
> > No, AFD does not support memory mapped files.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> > ----- Original Message -----
> > From: “Asa Yeamans”
> > To: “Windows System Software Devs Interest List”
> > Sent: Sunday, June 05, 2005 12:32 PM
> > Subject: [ntdev] Valid File-Objects to back Sections
> >
> >
> > I was wondering, is it possible for a usermode-socket handle to back
> > a file mapping aka Section object.
> >
> > I realize that these are represented somehow as ‘pipes’ and that might
> > prevent it. But what fundamentally is the difference between
> > a pipe-type
> > file object and a disk-file type file object. Why is it that
> > one can be
> > used to back a section and well, I don’t know yet about the other one.
> > Don’t debate this too much, its more of a question of curiosity than a
> > solution to a problem im having.
> >
> > Asa
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: unknown lmsubst tag
> > argument:
> > ‘’
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@rivin.net
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: unknown lmsubst tag
> > argument:
> > ‘’
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: unknown lmsubst tag
> > argument: ‘’
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com