From: Thomas Schlichter <schlicht@uni-mannheim.de>
To: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
alan@lxorguk.ukuu.org.uk
Subject: Re: patch for errno-issue (with soundcore)
Date: Mon, 13 Jan 2003 18:10:53 +0100 [thread overview]
Message-ID: <200301131810.53089.schlicht@uni-mannheim.de> (raw)
In-Reply-To: <D206AA476EB@vcnet.vc.cvut.cz>
On Mon, 13. Jan. 2003 17:33, Petr Vandrovec wrote:
> There is no problem currently, because of nobody uses errno value at
> all (in the firmware loader), it is just that inline functions generated
> by syscallX() store error codes into errno...
>
> Real problem is that firmware loader should use
> filp_open/vfs_read/filp_close (or sys_open/sys_llseek/sys_read/sys_close if
> you want to use fd interface, but filp_{open,close} and vfs_read are
> already exported for modules while sys_open/sys_llseek/sys_read are not).
>
> As an alternative, do_mod_firmware_load should be standalone userspace
> program executed through call_usermodehelper or something like that...
> Unfortunately we do not have an interface to distribute userspace binaries
> together with kernel (except initrd) yet, so it would require either
> adding do_mod_firmware_load into module-init-tools, or some simillar
> package required by 2.[56].x kernels.
>
> Also adding "#define errno (current()->exit_code)" at the beginning of
> sound_firmware.c (just below #define __KERNEL_SYSCALLS__) should do
> the trick, but I do not recommend taking this path.
> Best regards,
> Petr Vandrovec
> vandrove@vc.cvut.cz
First of all a big THANKS!
Now, at least, I understood the real problem...
'errno' is only needed because open(), close(), llseek() and read() are used,
which do a syscall and the return code is written to a variable called
'errno'. This is NOT the 'errno' variable defined in lib/errno.c... OK.
And so the real problem is using these functions and as we ARE in the kernel
mode we do not really need the kernel traps...
So after realizing the real problem I think I am not the right person to fix
it. But if you want I could try...
Sincerely yours
Thomas Schlichter
next prev parent reply other threads:[~2003-01-13 17:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-13 16:33 Petr Vandrovec
2003-01-13 17:10 ` Thomas Schlichter [this message]
2003-01-13 19:10 ` [PATCH] " Petr Vandrovec
-- strict thread matches above, loose matches on Subject: below --
2003-01-13 13:57 Thomas Schlichter
2003-01-13 14:04 ` Bob_Tracy(0000)
2003-01-13 15:13 ` Alan Cox
2003-01-13 14:57 ` Thomas Schlichter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200301131810.53089.schlicht@uni-mannheim.de \
--to=schlicht@uni-mannheim.de \
--cc=VANDROVE@vc.cvut.cz \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome