niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Unix internals
Are Device Drivers Reentrant -- or Daemons?
Post new topic   Reply to topic Page 4 of 4 [50 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2, 3, 4
Author Message
Andrew Gabriel
*nix forums Guru


Joined: 19 Feb 2005
Posts: 454

PostPosted: Wed Feb 15, 2006 11:47 pm    Post subject: Re: Are Device Drivers Reentrant -- or Daemons? Reply with quote

In article <43F3B5B7.3080400@acm.org>,
Nick Roberts <nick.roberts@acm.org> writes:
Quote:

I am not an expert on pthreads, but my impression is that this facility
is really rather limited. I have heard that you cannot use the semaphore
facility without running as root, and that you are limited to 32 semaphores.

That might be a feature of some rather sad (and probably
not standards conforming) implementation, but it's certainly
not inherent in pthreads.

--
Andrew Gabriel
Back to top
toby
*nix forums addict


Joined: 01 Jul 2005
Posts: 87

PostPosted: Thu Feb 16, 2006 4:37 am    Post subject: Re: Are Device Drivers Reentrant -- or Daemons? Reply with quote

Matthias Bethke wrote:
Quote:
begin followup to Paul Barker in comp.unix.programmer:
In linux (at least in my kernel) the folder "block" at the
root of the source tree contains all the generic block device stuff.
There may also be some good docs included with the kernel source.

There's a pretty good book by O'Reilly on Linux device drivers from
kernel 2.0 to 2.4, available on dead trees as well as free hypertext:
http://www.xml.com/ldd/chapter/book/

The 3rd edition covers 2.6: http://lwn.net/Kernel/LDD3/

Quote:

cheers!
Matthias
--
end
Back to top
toby
*nix forums addict


Joined: 01 Jul 2005
Posts: 87

PostPosted: Thu Feb 16, 2006 5:07 am    Post subject: Re: Are Device Drivers Reentrant -- or Daemons? Reply with quote

James Harris wrote:
Quote:
"Chris Thompson" <cet1@cus.cam.ac.uk> wrote in message
news:dsqct8$q1r$1@gemini.csx.cam.ac.uk...
In article <dsl62m$1hvr$1@gavrilo.mtu.ru>,
Maxim S. Shatskih <maxim@storagecraft.com> wrote:
I'm not sure what 'reentrant' means here. AFAIK a program code
segment
is usually reentrant in that it cannot normally be written to - so

I'm against the whole word of ''reentrant". It is, in fact, something
from the
old time of MS-DOS add-ons which tried to do multitasking from this
pathetic
OS.

MS-DOS? That's practically yesterday! We were talking about
"reeentrant" and
"serially reusable" load modules back in OS/360, and it probably
wasn't a
new term then.

That's where I first came across the term. It was a long time ago. IIRC
it would apply to any module that did not modify part of itself.

Before stacks became commonplace, architectural subroutine linkage
conventions (typically of the 'self-modifying' type, such as storing
the link address in a fixed location[1]) often precluded re-entrancy
and recursion except through explicit emulation of a stack.

[1] e.g. http://www.cs.clemson.edu/~mark/subroutines/pdp8.html
Back to top
toby
*nix forums addict


Joined: 01 Jul 2005
Posts: 87

PostPosted: Thu Feb 16, 2006 5:17 am    Post subject: Re: Are Device Drivers Reentrant -- or Daemons? Reply with quote

James Harris wrote:
Quote:
"Chris Thompson" <cet1@cus.cam.ac.uk> wrote in message
news:dsqct8$q1r$1@gemini.csx.cam.ac.uk...
In article <dsl62m$1hvr$1@gavrilo.mtu.ru>,
Maxim S. Shatskih <maxim@storagecraft.com> wrote:
I'm not sure what 'reentrant' means here. AFAIK a program code
segment
is usually reentrant in that it cannot normally be written to - so

I'm against the whole word of ''reentrant". It is, in fact, something
from the
old time of MS-DOS add-ons which tried to do multitasking from this
pathetic
OS.

MS-DOS? That's practically yesterday! We were talking about
"reeentrant" and
"serially reusable" load modules back in OS/360, and it probably
wasn't a
new term then.

That's where I first came across the term. It was a long time ago. IIRC
it would apply to any module that did not modify part of itself.

Before stacks became an architectural commonplace, subroutine linkage
conventions (typically of the 'self-modifying' type, such as storing
the link address in a fixed location[1]) often precluded re-entrancy
and recursion by default.

As other posters point out, a stack answers both problems by providing
storage for state and return link that is local to any activation.

[1] e.g. http://www.cs.clemson.edu/~mark/subroutines/pdp8.html
Back to top
toby
*nix forums addict


Joined: 01 Jul 2005
Posts: 87

PostPosted: Thu Feb 16, 2006 5:18 am    Post subject: Re: Are Device Drivers Reentrant -- or Daemons? Reply with quote

James Harris wrote:
Quote:
"Chris Thompson" <cet1@cus.cam.ac.uk> wrote in message
news:dsqct8$q1r$1@gemini.csx.cam.ac.uk...
In article <dsl62m$1hvr$1@gavrilo.mtu.ru>,
Maxim S. Shatskih <maxim@storagecraft.com> wrote:
I'm not sure what 'reentrant' means here. AFAIK a program code
segment
is usually reentrant in that it cannot normally be written to - so

I'm against the whole word of ''reentrant". It is, in fact, something
from the
old time of MS-DOS add-ons which tried to do multitasking from this
pathetic
OS.

MS-DOS? That's practically yesterday! We were talking about
"reeentrant" and
"serially reusable" load modules back in OS/360, and it probably
wasn't a
new term then.

That's where I first came across the term. It was a long time ago. IIRC
it would apply to any module that did not modify part of itself.

Before stacks became an architectural commonplace, subroutine linkage
conventions (typically of the 'self-modifying' type, such as storing
the link address in a fixed location[1]) often precluded re-entrancy
and recursion by default.

As other posters point out, a stack answers both problems by providing
storage for state and return link that is local to any activation.

[1] e.g. http://www.cs.clemson.edu/~mark/subroutines/pdp8.html
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 4 of 4 [50 Posts] Goto page:  Previous  1, 2, 3, 4
View previous topic :: View next topic
The time now is Sat Nov 22, 2008 12:45 pm | All times are GMT
navigation Forum index » Programming » Unix internals
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Flash device can't find in kernel and redboot Kevin embedded 1 Thu Jul 20, 2006 10:04 am
No new posts hostap drivers as Access Point Captain Dondo networking 0 Thu Jul 20, 2006 4:11 am
No new posts Question about PCI IDs and Drivers dutche Debian 8 Wed Jul 19, 2006 6:00 pm
No new posts raw device and solaris 10 osamaism@gmail.com Server 1 Wed Jul 19, 2006 9:11 am
No new posts raw device and solaris 10 osamaism@gmail.com Server 0 Wed Jul 19, 2006 9:11 am

Hackers | Mortgage | Ethical hacking tool kit | Mortgage Loans | Homes for Sale
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 1.0684s ][ Queries: 16 (0.9779s) ][ GZIP on - Debug on ]