Skip to contentSkip to conversation

The disappearing sys_call_table export.

DISCUSSION Pete Zaitcev 2 participants 2 messages May 5, 2003 – May 6, 2003 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines

I use the following calls:

sys_mknod
sys_chown
sys_umask
sys_unlink

for creating/deleting /dev entries dynamically on driver loading/unloading. It allows me to acquire dynamic major number without devfs and external utility of any kind.

Well, duh. "Without devds and external utility" is a no-goal. You set it, you screw trying to achieve it. It's like a well-known Russian joke: "[...] We remove the adenoid tissue... through the anal opening with a blowtorch".

Quoted 5 lines

I use sys_write to output loading/device detection/diagnostic messages to process's stderr when appropriate. Yes, it may look as "wrong thing" but it uses only legal kernel mechanisms and it saves lots of time with e-mail support:
/sbin/insmod driver verbose=1 2>&1 | mail -s 'it does not works' me@

And pray tell how is syslog different?

-- Pete

#2 lore raw
Quoted 8 lines · Pete Zaitcev
Quoted 3 lines

for creating/deleting /dev entries dynamically on driver loading/unloading. It allows me to acquire dynamic major number without devfs and external utility of any kind.

Well, duh. "Without devds and external utility" is a no-goal. You set it, you screw trying to achieve it. It's like a well-known Russian joke: "[...] We remove the adenoid tissue... through the anal opening with a blowtorch".

:)
I disagree. It is small and nice solution. It is my own devfs for pre-devfs kernels.

Quoted 7 lines
Quoted 5 lines

I use sys_write to output loading/device detection/diagnostic messages to process's stderr when appropriate. Yes, it may look as "wrong thing" but it uses only legal kernel mechanisms and it saves lots of time with e-mail support:
/sbin/insmod driver verbose=1 2>&1 | mail -s 'it does not works' me@

And pray tell how is syslog different?

syslog has the same text first.