On Fri, 28 Jul 2000, Russell King wrote:
> Therefore, its fine if you've got one of the few cards that fbcon
> works with. Otherwise you're using vgacon, and it doesn't work.
It does actually work on plain vga without any fb support at all. Try it
and see. Here is a little ready-to-compile module for you to try.
Regards,
Tigran
#define __KERNEL__
#define MODULE
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
print_string(char *str)
{
struct tty_struct *tty = current->tty;
(*tty->driver.write)(tty, 0, str, strlen(str));
(*tty->driver.write)(tty, 0, "\015\012", 2);
}
static struct super_block *
single_read_super(struct super_block *s, void *data, int silent)
{
char buf[100];
sprintf(buf, "comm=%s\n", current->comm);
print_string(buf);
return NULL;
}
static DECLARE_FSTYPE(single_fs_type, "single", single_read_super, FS_SINGLE);
static int __init init_single_fs(void)
{
char buf[100];
int ret = register_filesystem(&single_fs_type);
printk(KERN_ERR "init_single_fs(): ret = %d\n", ret);
sprintf(buf, "comm=%s\n", current->comm);
print_string(buf);
return ret;
}
static void __exit exit_single_fs(void)
{
char buf[100];
sprintf(buf, "comm=%s\n", current->comm);
print_string(buf);
unregister_filesystem(&single_fs_type);
}
module_init(init_single_fs);
module_exit(exit_single_fs);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:28 EST