On Tue, Jan 29, 2013 at 9:52 AM, Mulyadi Santosa
mulyadi.sant...@gmail.comwrote:
On Tue, Jan 29, 2013 at 3:13 AM, horseriver horseriv...@gmail.com wrote:
hi:)
In kernel code ,what is the use of EXPORT_SYMBOL()?
Does it export a function to user application ,
so this function
On 2013-01-29 14:21:24 (+0700), Mulyadi Santosa mulyadi.sant...@gmail.com
wrote:
Can this function be used in user application?
no. But I guess I see quite similar function provided by glibc/gcc.
Forgot the function name though, sorry...
backtrace()
On Tue, 29 Jan 2013 16:56:02 +0100, Tobias Boege said:
Look some lines above:
struct fd f = fdget(fd);
That creates a reference, not a lock. It basically assures that
the system doesn't reap and reclaim that fd out from under the code.
(In other words, it's managing lifetime, not
2013/1/29 Tobias Boege tob...@gambas-buch.de
On Tue, 29 Jan 2013, Karaoui mohamed lamine wrote:
Hello,
I was looking at how a syscall read/write was done, and i found this :
loff_t pos = file_pos_read(f.file);
ret = vfs_read(f.file, buf, count, pos);
On Tue, 29 Jan 2013 18:25:19 +0100, Karaoui mohamed lamine said:
This function is supposed to return the file reference, does do the locking?
Refcounting only, no locking provided by fdget.
It seems that i can't find the lock instruction( with all those rcu
instructions, i am little lost),
On Tue, 2013-01-29 at 15:51 +0100, Thomas Petazzoni wrote:
No, there is no automated tool, because it is not possible to do that
automatically. The device drivers used by your board must have a Device
Tree binding, and writing the Device Tree source cannot directly be
done from the C board
I'm still not able to figure out where exactly is the position of file
stored per task_struct.
struct file * itself is per process (task_struct) so file-f_pos is file
position per process, if thats what you are looking for. I hope you haven't
assumed that struct file itself is unique for a file,
-Original Message-
From: Rajat Sharma [mailto:fs.ra...@gmail.com]
Sent: Wednesday, January 30, 2013 11:16 AM
To: Pranay Kumar Srivastava
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: Where does kernel store per task file position?
I'm still not able to figure out where
Correct :)
On Wed, Jan 30, 2013 at 12:01 PM, Pranay Kumar Srivastava
pranay.shrivast...@hcl.com wrote:
-Original Message-
From: Rajat Sharma [mailto:fs.ra...@gmail.com]
Sent: Wednesday, January 30, 2013 11:16 AM
To: Pranay Kumar Srivastava
Cc: