Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 08-05-2009, 03:26 AM   #1
LQ Newbie
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
porting POSIX to kernel mode

Is it possible to port POSIX to kernel mode so that any other module in kernel can utilize the APIs as and when required.
Is it a valid thing??
Old 08-05-2009, 03:40 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
Yes, it is possible. However, the whole POSIX is a really big thing and I see no reason you need the whole of it in the kernel. I haven't heard of anyone doing that. Specific subsystems, or parts of them, may have some use. Plus, debugging in the kernel is much harder than in the userspace, so I'd rather see all complicated stuff in the user space. But that's your choice, of course.
Old 08-05-2009, 10:30 PM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,624
Blog Entries: 4

Rep: Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998
To the foregoing post, "I respectfully dissent."

The kernel plays by fundamentally different rules. Its purpose is to create the environment in which user-land programs operate, and to conceal from those programs any specific knowledge of the hardware. For that very reason, the kernel is ruled by "specific knowledge of the hardware."

The POSIX standard is designed to allow transportable programs to be written, and since those programs run in the nice, fat, cozy virtual-memory environment that is so thoughtfully provided for them by the operating system kernel, "hey, those programs can afford to be 'fat, dumb, and happy ... with our compliments.'" But for the kernel, the extreme opposite is true. And frankly, to the kernel, "POSIX is completely irrelevant."


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
convert POSIX mode to seconds gdan2000 Linux - General 2 05-08-2009 02:25 AM
POSIX Shared Memory w/ Kernel Module Smoltz Linux - Kernel 0 08-12-2008 02:56 PM
Porting 2.4 kernel Serial driver on to 2.6 kernel krishna_karne Linux - Software 1 05-30-2008 03:49 AM
Porting driver to kernel 2.6 jhoya Linux - Software 0 08-24-2005 12:25 PM
kernel and posix AIO suman_bahuguna Red Hat 0 04-02-2004 12:27 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration