RE: Unknown sys_open

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: Re: Unknown sys_open
Actually, we want to write some stats info to compactflash. The code is below:
 
        fs = get_fs();
        set_fs(get_ds());
        if((tfd = sys_open("/dev/hda2", O_WRONLY, S_IRWXU)) < 0) {
                printk("Unable to open stats file to write\n");
        } else {
                filp = fget(tfd);
                write_sizef = (sizeof(flash_stats_info_t)
                                + (wear_planes * sizeof(aesop_flash_blk_t))
                                + (wear_planes * sizeof(int)));
                rbytes = filp->f_op->write(filp, (char*)(wstats_mem),
                                write_sizef, &filp->f_pos);
                fput(filp);
                sys_close(tfd);
        }
        set_fs(fs);


From: Arjan van de Ven [mailto:arjan@xxxxxxxxxxxxx]
Sent: Mon 12/4/2006 10:36 PM
To: Junhan Zhang (junhan)
Cc: kernelnewbies@xxxxxxxxxxxx
Subject: Re: Unknown sys_open

On Mon, 2006-12-04 at 16:54 -0800, Junhan Zhang (junhan) wrote:
> Hello Gurus

> I have a kernel module which uses sys_open(), however, when I insmod,
> I got unknown symbol sys_open(). Do you know why? By the way, I use
> kernel 2.6.11 . Thanks a lot.

you should fix the module to not use sys_open; it's been deprecated for
a LOOOONG time.

can you post the (full) sourcecode for the module so that we can do
suggestions on how to fix it ?
--
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux