- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how open a file in Kernel Space
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 02:37 AM
тАО08-12-2009 02:37 AM
how open a file in Kernel Space
how open a file in Kernel Space?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 03:52 AM
тАО08-12-2009 03:52 AM
Re: how open a file in Kernel Space
What are you trying to do?
Jov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 06:48 AM
тАО08-12-2009 06:48 AM
Re: how open a file in Kernel Space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 06:51 AM
тАО08-12-2009 06:51 AM
Re: how open a file in Kernel Space
has the function vn_open, but there is no man page for it.
extern int vn_open __((char *, int, int, int, int, struct vnode **));
what are four int type parameters?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2009 03:04 AM
тАО08-17-2009 03:04 AM
Re: how open a file in Kernel Space
has the function vn_open, but there is no man page for it.
extern int vn_open __((char *, int, int, int, int, struct vnode **));
what are four int type parameters?
(char *pnamep, int seg, int filemode, int createmode, int plainmode, stru
ct vnode **vpp)
just a remark, you can also open it at user level, and use it from kernel.
filemode being FREAD|FWRITE|....FCREAT...
plainmode and createmode are used only when FCREAT is used
vn_rdwr(enum uio_rw rw, struct vnode *vp, char *base, size_t len, k_off_t offset, int seg, int ioflag, long *aresid, int fpflags)
but basically is it often more confortable and less problematic to have a user level daemon which read() from your device the messages to log and log them from user level;
The risk is much less than making that sort of thing from the kernel, due to the fact for instance that kernel is not preemtable,
for instance nettl is doing this that way.
ntl_reader running at rt prio is logging the nettl traces and logs.
So my advice is use a user level daemon to log to a file. it will work more easily with no risk