has something about "current" changed lately?

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

 



  not that long ago, a simple module i wrote with this entry routine
worked just fine:

...
#include <asm/current.h>
...
static int hi(void)
{
        printk(KERN_INFO "Hello from hi1.\n");
        printk(KERN_INFO "The user space process is '%s'\n", current->comm);
        printk(KERN_INFO "The user space PID is  %i\n", current->pid);
        return 0;
}

  but trying to build it against the latest git pull produces:

.../hi1.c:14: error: dereferencing pointer to incomplete type
.../hi1.c:15: error: dereferencing pointer to incomplete type

  huh?  does "current" not work the same way anymore?  have i missed
something obvious, because this used to work just fine.

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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