get_user() and put_user() missing in syscall list

2014-06-02 Thread Dipanjan Das
Hi, Here's an exhaustive list http://man7.org/linux/man-pages/man2/syscalls.2.html of Linux syscall, but I can't find get_user() and put_user() API. Why is it so? What am I missing? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Linux Hibernation with sata driver

2014-06-02 Thread Varka Bhadram
My first doubt is why ARM is having PCI bus... ? I think it has AMBA Bus ... On June 1, 2014 at 11:40 PM AYAN KUMAR HALDER ayankum...@gmail.com wrote: Hi, I am working with Linux hibernation framework on ARM based custom SOC which has SATA controller on PCI bus. I see that when the system

Re: get_user() and put_user() missing in syscall list

2014-06-02 Thread Varka Bhadram
These two are not the system calls. they are the Kernel API's to transfer the data from user address space to the kernel address space. please see: http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239 http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239

Re: get_user() and put_user() missing in syscall list

2014-06-02 Thread Dipanjan Das
I am new to Linux kernel stuffs. How are Kernel API and syscalls differ from each other? On 2 June 2014 13:43, Varka Bhadram var...@cdac.in wrote: These two are not the system calls. they are the Kernel API's to transfer the data from user address space to the kernel address space.

Re: get_user() and put_user() missing in syscall list

2014-06-02 Thread Sudip Mukherjee
On Mon, Jun 2, 2014 at 1:49 PM, Dipanjan Das mail.dipanjan@gmail.com wrote: I am new to Linux kernel stuffs. How are Kernel API and syscalls differ from each other? syscalls are system calls which which will be used by your application in user space. syscalls table will map the userspace

Re: get_user() and put_user() missing in syscall list

2014-06-02 Thread Varka Bhadram
http://stackoverflow.com/questions/20172111/difference-between-system-api-and-system-call-api http://stackoverflow.com/questions/17219898/what-is-the-difference-between-linux-kernel-api-system-calls-system-inter These two links will give the diffrence b/w them... On June 2, 2014 at 1:49 PM

Re: Linux Hibernation with sata driver

2014-06-02 Thread AYAN KUMAR HALDER
Hi Varka, This is a arm based custom platform in which we have both AMBA bus as well as pci bus (pci slots which can fit addon cards). There is no restriction(as far as I understand) that ARM based platforms cannot have PCI bus. Regards, Ayan Kumar Halder On Mon, Jun 2, 2014 at 1:28 PM, Varka

Setting the skb-mark field from application

2014-06-02 Thread Vishwas Srivastava
Hi all, Is it possible to set the skb-mark flied of the linux socket buffer from the application? Suppose application is using the Raw socket of Ethernet interface and it sends and receive packets to that interface. However, application wants to set the skb-mark filed of the socket

Re: Setting the skb-mark field from application

2014-06-02 Thread Anton Danilov
Hello. Yes, you can do it with SO_MARK socket option. From socket man: SO_MARK (since Linux 2.6.25) Set the mark for each packet sent through this socket (similar to the netfilter MARK target but socket-based). Changing the mark can be used for

Re: Linux Hibernation with sata driver

2014-06-02 Thread Varka Bhadram
Hi Ayan Kumar Halder, Ya you are right. But ARM only supports AMBA bus, your board may have some controller which acts as bridge b/w PCI and AMBA. Regards, Varka Bhadram On June 2, 2014 at 2:29 PM AYAN KUMAR HALDER ayankum...@gmail.com wrote: Hi Varka, This is a arm based custom platform in

head.S

2014-06-02 Thread Saurabh Jain
hello every one ! I am trying to trace Linux kernel booting process for ARM architecture. Right now i am doing it manually . I am getting problem in reading assembly codes (like in head.s and other files) . Can any body tell me the correct way of tracing the linux kernel booting process ? Is

Re: head.S

2014-06-02 Thread Valdis . Kletnieks
On Mon, 02 Jun 2014 21:23:16 +0530, Saurabh Jain said: I am trying to trace Linux kernel booting process for ARM architecture. Right now i am doing it manually . I am getting problem in reading assembly codes (like in head.s and other files) . Can any body tell me the correct way of tracing

Re: head.S

2014-06-02 Thread Max Filippov
Hi, On Mon, Jun 2, 2014 at 7:53 PM, Saurabh Jain saurabh4768j...@gmail.com wrote: I am trying to trace Linux kernel booting process for ARM architecture. Right now i am doing it manually . I am getting problem in reading assembly codes (like in head.s and other files) . Can any body tell me

Re: head.S

2014-06-02 Thread Augusto Mecking Caringi
On Mon, Jun 2, 2014 at 12:53 PM, Saurabh Jain saurabh4768j...@gmail.com wrote: hello every one ! I am trying to trace Linux kernel booting process for ARM architecture. Right now i am doing it manually . I am getting problem in reading assembly codes (like in head.s and other files) . Can

Newbie task: Fix a build regression

2014-06-02 Thread Richard Weinberger
Hi! On linux-next (next-20140530) the UML out-of-tree build is broken. ---cut--- rw@azrael:~/linux-next (next-20140530) make defconfig ARCH=um O=/mnt/o GEN ./Makefile *** Default configuration is based on 'x86_64_defconfig' # # configuration written to .config # rw@azrael:~/linux-next

Re: Newbie task: Fix a build regression

2014-06-02 Thread Valdis . Kletnieks
On Mon, 02 Jun 2014 20:56:35 +0200, Richard Weinberger said: 1. Find out which commit broke the build (i.e. using git bisect) Any hint on a starting value for 'git bisect good v3.mumble'? :) pgpeXYL4ntWD9.pgp Description: PGP signature ___

Re: Newbie task: Fix a build regression

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 21:06, schrieb valdis.kletni...@vt.edu: On Mon, 02 Jun 2014 20:56:35 +0200, Richard Weinberger said: 1. Find out which commit broke the build (i.e. using git bisect) Any hint on a starting value for 'git bisect good v3.mumble'? :) I don't really now. I don't do out-of-tree

Re: Newbie task: Fix a build regression

2014-06-02 Thread Valdis . Kletnieks
On Mon, 02 Jun 2014 21:10:10 +0200, Richard Weinberger said: I don't really now. I don't do out-of-tree builds on -next. Randy said its there for a few weeks. A 'v3.14-rc7' or similar tag from Linus's tree is good enough, as you can't do a sane bisect between (say) next-20140501 and

Re: Linux reboot command takes too long

2014-06-02 Thread Vipul Jain
On Fri, May 30, 2014 at 3:19 PM, Rajat Sharma fs.ra...@gmail.com wrote: you have kdump enabled crashkernel=512M@128M On Fri, May 30, 2014 at 2:38 PM, Vipul Jain vipu...@gmail.com wrote: On Fri, May 30, 2014 at 12:32 PM, Vipul Jain vipu...@gmail.com wrote: Hi All, I have a quick question

Re: remote devices

2014-06-02 Thread riya khanna
Hi Pranay, Thanks for pointing this out! I was wondering if it is possible to use a remote GPU through /dev/gpu. -Riya On Sat, May 31, 2014 at 11:35 PM, Pranay Srivastava pran...@gmail.com wrote: Hi Riya, It's actually not the major and minor numbers, sure they decide the driver and the

EXPORT_SYMBOL and rebinding functions

2014-06-02 Thread Peter Tosh
Hey guys, I have a module which defines a specific print function, and another module that uses said function. From the first module I have used EXPORT_SYMBOL(function_1). From within the second module I would like to rebind that function to another printing function, and once I'm finished,

Information regarding Device Tree

2014-06-02 Thread JAYESH TANK
Hi All, I would like to write script to get Windows Device Manager like functionality to check all the devices present on my Linux machine. What all are the ways to get about this, is iterating sysfs is the way? Or is there any other elegant way? Thanks for support. Jayesh Kumar

Re: head.S

2014-06-02 Thread Vignesh Radhakrishnan
Hi Saurabh, You can take a look at the DOC mentioned here. Its kind of gives an overview (not in depth) of every function in Booting process in ARM linux : http://www.linux-arm.org/pub/LinuxPlatform/RealViewLink/Booting_ARM_Linux_SMP_on_MPCore.doc Its a good start to dive into the internals.

Re: Information regarding Device Tree

2014-06-02 Thread Greg KH
On Tue, Jun 03, 2014 at 09:10:54AM +0530, JAYESH TANK wrote: Hi All,   I would like to write script to get Windows Device Manager like functionality to check all the devices present on my Linux machine. What all are the ways to get about this, is iterating sysfs is the way? Or is there any

Re: EXPORT_SYMBOL and rebinding functions

2014-06-02 Thread Greg KH
On Mon, Jun 02, 2014 at 08:29:16PM -0700, Peter Tosh wrote: Hey guys, I have a module which defines a specific print function, and another module that uses said function. From the first module I have used EXPORT_SYMBOL(function_1). From within the second module I would like to rebind that

Re: EXPORT_SYMBOL and rebinding functions

2014-06-02 Thread Peter Tosh
Is this just a horrible idea in general? Can you give some kind of general explanation? On Mon, 2014-06-02 at 20:57 -0700, Greg KH wrote: On Mon, Jun 02, 2014 at 08:29:16PM -0700, Peter Tosh wrote: Hey guys, I have a module which defines a specific print function, and another module

Re: remote devices

2014-06-02 Thread Pranay Srivastava
On Tue, Jun 3, 2014 at 7:42 AM, riya khanna riyakhanna1...@gmail.com wrote: Hi Pranay, Thanks for pointing this out! I was wondering if it is possible to use a remote GPU through /dev/gpu. You would need to modify the nfs client code i think for this. But since it's a device file and if you

How to call syscalls - SYSCALL or 0x80 interrupt

2014-06-02 Thread Dipanjan Das
Hi, I came across this discussion in StackExchange http://unix.stackexchange.com/questions/61891/linux-kernel-3-2-syscalls. Does anyone have any idea on this? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: EXPORT_SYMBOL and rebinding functions

2014-06-02 Thread Greg KH
On Mon, Jun 02, 2014 at 09:19:41PM -0700, Peter Tosh wrote: Is this just a horrible idea in general? Can you give some kind of general explanation? Messing with symbol address is a horrible idea in general. Step back, what problem are you trying to solve that ended up with this type of

Man pages for Kernel API

2014-06-02 Thread Dipanjan Das
Hi, Like there is section #2 of man pages dedicated to syscalls, is there any official way to get the list of all supported Kernal APIs? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to call syscalls - SYSCALL or 0x80 interrupt

2014-06-02 Thread Greg KH
On Tue, Jun 03, 2014 at 09:45:33AM +0530, Dipanjan Das wrote: Hi, I came across this discussion in StackExchange. Does anyone have any idea on this? Yes, the code looks correct, the question asked is incorrect :) ___ Kernelnewbies mailing list

Fwd: Question regarding ISA DMA

2014-06-02 Thread Pranay Srivastava
Hi, I'm trying to understand how to use the ISA DMA controller with my PC. What I'm not able to understand is that why is it required to have an IRQ line associated with my device that is going to initiate the DMA? As I understand DMA controller would be signalling CPU[Correct?] so this IRQ

Re: EXPORT_SYMBOL and rebinding functions

2014-06-02 Thread Peter Tosh
It's currently being done in a user space application which I am porting to a kernel module. Is there some other way of accomplishing the same thing safely? On Mon, 2014-06-02 at 21:47 -0700, Greg KH wrote: On Mon, Jun 02, 2014 at 09:19:41PM -0700, Peter Tosh wrote: Is this just a horrible

Re: EXPORT_SYMBOL and rebinding functions

2014-06-02 Thread Greg KH
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Mon, Jun 02, 2014 at 10:10:16PM -0700, Peter Tosh wrote: It's currently being done in a user space application which I am porting to a kernel module. Is there some other way of accomplishing the

Re: How to call syscalls - SYSCALL or 0x80 interrupt

2014-06-02 Thread Dipanjan Das
Is in incorrect because the execve() call in the code is to the libc stub but not the actual syscall itself? On 3 June 2014 10:19, Greg KH g...@kroah.com wrote: On Tue, Jun 03, 2014 at 09:45:33AM +0530, Dipanjan Das wrote: Hi, I came across this discussion in StackExchange. Does anyone

Re: How to call syscalls - SYSCALL or 0x80 interrupt

2014-06-02 Thread Greg KH
On Tue, Jun 03, 2014 at 11:03:25AM +0530, Dipanjan Das wrote: Is in incorrect because the execve() call in the code is to the libc stub but not the actual syscall itself? Yes. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Getting unregister_netdevice: waiting for eth0 to become free. Usage count = 4 error

2014-06-02 Thread Vishwas Srivastava
Hi All, When i am trying to delete an interface from the application, while traffic is flowing through it, kernel throws the message unregister_netdevice: waiting for eth0 to become free. Usage count = 4 which means network device usage counter is more that zero and there are 4