From: Stefan B <ChromosML@web.de>
To: linux-kernel@vger.kernel.org
Subject: Re: ov511 2.6.0-test3
Date: Sun, 10 Aug 2003 07:16:40 +0200 [thread overview]
Message-ID: <3F35D538.1040205@web.de> (raw)
In-Reply-To: <3F356BC6.9020904@web.de>
[-- Attachment #1: Type: text/plain, Size: 221 bytes --]
Stefan B. wrote:
> Try adding this to driver/media/video/videodev.c:
> (e.g. after the other EXPORT_SYMBOL lines)
>
> void *video_proc_entry;
> EXPORT_SYMBOL(video_proc_entry);
>
sorry, not good; this patch should do
[-- Attachment #2: patch-2.6.0-test3-videoproc --]
[-- Type: text/plain, Size: 1091 bytes --]
diff -Nru drivers/media/video/videodev.c
--- drivers/media/video/videodev.c Sun Aug 10 07:01:27 2003
+++ drivers/media/video/videodev.c Sun Aug 10 07:05:37 2003
@@ -367,6 +367,8 @@
* Initialise video for linux
*/
+struct proc_dir_entry *video_proc_entry = NULL;
+
static int __init videodev_init(void)
{
printk(KERN_INFO "Linux video capture interface: v1.00\n");
@@ -375,11 +377,19 @@
return -EIO;
}
class_register(&video_class);
+
+ video_proc_entry = create_proc_entry("video", S_IFDIR, &proc_root);
+ if (video_proc_entry)
+ video_proc_entry->owner = THIS_MODULE;
return 0;
}
static void __exit videodev_exit(void)
{
+ if (video_proc_entry)
+ remove_proc_entry("video", &proc_root);
+ video_proc_entry = NULL;
+
class_unregister(&video_class);
unregister_chrdev(VIDEO_MAJOR, VIDEO_NAME);
}
@@ -395,6 +405,7 @@
EXPORT_SYMBOL(video_exclusive_release);
EXPORT_SYMBOL(video_device_alloc);
EXPORT_SYMBOL(video_device_release);
+EXPORT_SYMBOL(video_proc_entry);
MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("Device registrar for Video4Linux drivers");
next prev parent reply other threads:[~2003-08-10 5:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-09 19:15 ov511 2.6.0-test3 Nicolas P.
2003-08-09 21:46 ` Chromosom
2003-08-10 5:16 ` Stefan B [this message]
2003-08-10 13:29 ` Mark McClelland
2003-08-09 22:11 ` Mark McClelland
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=3F35D538.1040205@web.de \
--to=chromosml@web.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.