Re: Assigning an unique name to USB CDC device in /dev

2014-03-05 Thread Srinivas Ganji
*, SUBSYSTEM==tty, ATTRS{serial}==__0X00124B000148CC78, SYMLINK+=mydev Then, all issues were resolved. It works fine irrespective of the device insertion, too. Thank you all. Regards, Srinivas. On Wed, Mar 5, 2014 at 4:29 PM, Bjørn Mork bj...@mork.no wrote: Srinivas Ganji srinivasganji.ker

Re: usb drivers

2014-03-05 Thread Srinivas Ganji
On Thu, Mar 6, 2014 at 12:04 PM, Kalyan Kodamagula kalyan_0...@yahoo.comwrote: Hi, Iam new to this ML,I need info regarding Usb device drivers.I had learned Lnx device drivers and having knowledge on USB Host driver(highlevel). I had seen probe/read/write functions of a driver.As

Assigning an unique name to USB CDC device in /dev

2014-03-04 Thread Srinivas Ganji
Dear All, We have a USB CDC device which we are connecting it to the Ubuntu system. Then, we are accessing the device using an application by opening the device with /dev/ttyACM0 node. The system may have multiple USB CDC devices already connected before connecting my device, sometimes. In such

Re: Query about PCI base address registers

2013-12-17 Thread Srinivas Ganji
Hi Ulka, Generally, the PCI configuration details are supplied by the PCI Card manufactures where they can explain all those details which you asked. So, try to get the PCI User Manual for the PCI card that you are working. In that user manual, you find all the information. Regarding the DMA, we

Re: BSP and the kernel

2013-09-23 Thread Srinivas Ganji
Hi Arun, Generally, the BSP stands for Board Support Package. The elements that are contained in the BSP are 1) Boot Loader 2) OEM Adaptation Layer (OAL) 3) Device Drivers 4) Configuration Files -- Boot Loader downloads the OS images in to the target board -- OAL links the kernel image and

Re: module_param does not work in Ubuntu 13.10 - Kernel 3.10.0-4

2013-09-06 Thread Srinivas Ganji
I have also tested, build KO file using your C file, on my kernel and it is working fine. The kernel version is 3.2.11 Why don't you try any other kernel version and see whether you are getting same error or not? I guess, it works. Regards, Srinivas G On Fri, Sep 6, 2013 at 10:22 AM,

Re: make install error

2013-09-05 Thread Srinivas Ganji
Arun, I guess, you need to select the xhci_hcd module in make menuconfig for building it as a module. Here are the steps to do it. Device Drivers --- [*] USB support --- Make sure Support for Host-side USB is a dynamically loadable module by moving the cursor to that item and hitting the 'm'

Re: Where is the system call table in linux kernel v3.9?

2013-07-23 Thread Srinivas Ganji
and it has worked (the table is in arch/x86/syscalls/syscall_32.tbl). Now, I'm going to try to create my own directory in kernel source which contains my system call implementation files as Srinivas Ganji has proposed. On Fri, 19 Jul 2013 12:15:44 +0530 Srinivas Ganji srinivasganji.ker...@gmail.com

Re: Where is the system call table in linux kernel v3.9?

2013-07-19 Thread Srinivas Ganji
Hi Iker Pedrosa, In old versions of Linux kernels like 2.6.xx, the approach was different from Linux version 3.3 on wards. There are two different approaches to implement own system call. Each approach involves several steps. The difference between two approaches is, in one approach, we

Re: implicit declaration of some function error

2013-07-19 Thread Srinivas Ganji
This is ONLY a hint for finding the header files in the /usr/src/linux directory. I do generally like this. find include -type f | xargs grep kthread_run Replace kthread_run with new strings for searching. This is ONLY a HINT but you asked for clear explanation. Regards, Srinivas. On Fri, Jul

Re: Linux Kernel and Device Drivers

2013-07-18 Thread Srinivas Ganji
a way to practice. For example: I want to read a process 'struct task_struct' to find it parent's process identifier, how many tasks are in which state, creating kernel threads etc? Any idea? On Mon, Jul 15, 2013 at 2:32 PM, Srinivas Ganji srinivasganji.ker...@gmail.com wrote: As per as I

Re: Inline Macro issue

2013-07-15 Thread Srinivas Ganji
-uid = 0; \ new1-gid = 0; \ commit_creds(new1) *}* * * Sorry I am still getting a compiler error. Regards, Saket Sinha * * On Mon, Jul 15, 2013 at 2:25 PM, Srinivas Ganji srinivasganji.ker...@gmail.com wrote: A small suggestion, use begin { and end

Re: SIGKILL and a sleeping kernel module

2013-02-19 Thread Srinivas Ganji
On Wed, Feb 20, 2013 at 11:59 AM, Srinivas Ganji srinivasganji.ker...@gmail.com wrote: On Tue, Feb 19, 2013 at 5:02 PM, Kevin Wilson wkev...@gmail.com wrote: Hi, Thanks about the info about ps. This raises two new questions: 1) The following code is a very basic kernel module (based