Re: book request

2011-01-06 Thread Greg KH
On Fri, Jan 07, 2011 at 01:43:22AM +0530, mohit verma wrote: hi all, i am sorry to ask but i have to i have mistakenly formated my books-containing partition . so can please someone upload some standard kenrel related books like: essential kernel,LDD,LKD (robert love) and some

Re: enabling bridge support in 2.4.26 Debian kernel

2011-01-07 Thread Greg KH
On Fri, Jan 07, 2011 at 11:56:05AM -0600, Don Tucker wrote: Hello, I recently rebuilt a 2.4.26 kernel, and selected Wow, you do realize just how old and unsupported that kernel version is, right? Why not try something more modern? thanks, greg k-h

Re: enabling bridge support in 2.4.26 Debian kernel

2011-01-07 Thread Greg KH
On Fri, Jan 07, 2011 at 01:34:58PM -0600, Don Tucker wrote: Yeah, unfortunately, I'm constrained to use that kernel version by the hardware that I've got. A third party has configured the kernel to support their hardware and they do not support later kernel versions on it, alas. There

Re: help with status of realtek wifi driver?

2011-01-07 Thread Greg KH
On Fri, Jan 07, 2011 at 08:36:51PM -0800, Dave Stevens wrote: Hi, My Samsung N220 has a RTL8192E wifi chip. The windows 7 driver works fine, but I think the Linux driver is in staging. Does anyone know how to find out if there is work being done on this driver or who is doing it? Flaky

Re: How to design protocol stack with can-bus driver of character driver

2011-01-13 Thread Greg KH
On Fri, Jan 14, 2011 at 12:42:52AM +0800, cheng chen wrote: Hi all, I am working on vehicle body control system with can-bus as my BE final project. It contains three parts. 1.CAN chip driver 2.CAN-bus protocol stack 3.UI The problem is that I already have written the CAN chip driver

Re: Regarding Kernel Project

2011-01-18 Thread Greg KH
On Mon, Jan 17, 2011 at 02:13:30AM +0530, vinit agrawal wrote: how about writing a device driver for those new 3G and 4G wireless devices.. We should already have drivers for all of these in Linux already. If not, please let me know. sorry, greg k-h

Re: How to create dev files in sysfs?

2011-01-19 Thread Greg KH
On Wed, Jan 19, 2011 at 02:23:41PM +0100, Arvid Brodin wrote: Hello, How do I make my platform device a character device that can be handled by udev? Have you read the Linux Device Drivers book about this very topic? If not, I suggest you do so. Background: I've written a driver for a

Re: Regarding Kernel Project

2011-01-19 Thread Greg KH
On Wed, Jan 19, 2011 at 09:11:53PM -0500, Pein Junior wrote: What is the USB device and vendor id? Hope this manual help explaining all that. http://digicel4gbroadband.com/assets/uploads/WiMAX_USB_Dongle_Modem_G_AX_225_Quick_Start_Guide.pdf No, what is the output of 'lsusb' with

Re: USB SUNRPC

2011-01-25 Thread Greg KH
On Tue, Jan 25, 2011 at 11:44:26AM +0530, swathi suresh wrote: Hello, Am working on a project which is some thing like i receive the RPC message over USB What type of device would you receive this message on? If it's a USB network device, it should work as-is today with no additional

Re: i see the intel i915 black screen issue is back

2011-01-26 Thread Greg KH
On Wed, Jan 26, 2011 at 07:16:26AM -0500, Robert P. J. Day wrote: On Wed, 26 Jan 2011, Greg KH wrote: On Tue, Jan 25, 2011 at 09:34:48PM -0500, Robert P. J. Day wrote: just built a new kernel for ubuntu 10.10 (2.6.38-rc2) and, depressingly, this kernel once again boots to a black

Re: Any known memory leak issues in handling SIGEV threads in Linux?

2011-02-10 Thread Greg KH
On Thu, Feb 10, 2011 at 11:36:28AM +0530, Sowmya Sridharan wrote: Hi All, In a stable system with 2.6.14 kernel, Wow, you do realize just how old, insecure, and unsupported that kernel version is, right? Hundreds of thousands of changes have happened in the many years since that was

Re: interrupting the compile process and restart from where I stopped

2011-02-28 Thread Greg KH
On Tue, Mar 01, 2011 at 10:04:23AM +0530, Tapas Mishra wrote: Hi, is there a way I can interrupt the ongoing kernel compile process and power off my machine and when I can get back to it then restart from where I had stopped the kernel compilation which I had interrupted. Hit ctrl-c to stop

Re: likely kernel/driver problem with 3G USB stick

2011-03-01 Thread Greg KH
On Tue, Mar 01, 2011 at 04:10:43PM +, Simon Leung wrote: Hi all, I'm having a problem with my 3G USB stick (Huawei E220) . The kernel I'm using is version 2.6.21 customized for an ARM board. When I insert the USB stick into the system, normally 3 device show up: /dev/ttyUSB{0,1,2}.

Re: Gsoc participation

2011-03-13 Thread Greg KH
On Sun, Mar 13, 2011 at 11:44:00PM +0200, Maksym Planeta wrote: Hello, I'm a student and I want to participate in Google Summer of Code (Gsoc) in project related to Linux kernel development. Great! I've read that kernelnewbies is one of Gsoc project groups [1]. So I want to know what

Re: UART and servo controller

2011-03-14 Thread Greg KH
On Tue, Mar 15, 2011 at 12:38:38AM +0100, Carlo Caione wrote: Hi, as an exercise I was trying to write a very simple module to drive a micro serial servo controller. This servo controller should be interfaced through a RS232-UART converter to a free UART port on the OMAP processor present on

Re: 答复: project ideas

2011-03-15 Thread Greg KH
On Tue, Mar 15, 2011 at 10:26:24AM -0400, Greg Freemyer wrote: 2011/3/15 LovelyLich lovelyl...@gmail.com: I have the same problem,but I want to know the to do projects list,which is not related with networking Where can I find that?thanks for any replies in advance There are a

Re: is git.kernel.org the best place for stable releases ?

2011-03-16 Thread Greg KH
On Wed, Mar 16, 2011 at 01:47:28PM -0600, Jim Cromie wrote: OpenWrt is apparently using a stable release that isnt on kernel.org Bartman007 wrote: 23 November 2010 The OpenWrt Release Team would like to announce a fourth release candidate (RC4) for Backfire Interim Release 1 (10.03.1).

Re: Problem compiling BCM Wireless driver on 2.6.37 (lib80211 symbol issue)

2011-03-20 Thread Greg KH
On Sun, Mar 20, 2011 at 09:04:21PM +0530, Shreyansh Jain wrote: Dear List, I recently compiled and booted up the 2.6.37 kernel on my Ubuntu (10.04), from 2.6.36.1. I have been trying to compile the Broadcom Wireless driver on 2.6.37, after making some changes in the source code. Just to

Re: GSoC project idea: HFS Plus journal

2011-03-20 Thread Greg KH
On Mon, Mar 21, 2011 at 02:07:40AM +0900, Naohiro Aota wrote: Greg KH g...@kroah.com writes: On Thu, Mar 17, 2011 at 06:57:27PM +0900, Naohiro Aota wrote: Hi, I see some of you are talking about GSoC participation. I'm also thinking of it. I have MacBookPro booting both MacOSX

Re: Problem compiling BCM Wireless driver on 2.6.37 (lib80211 symbol issue)

2011-03-20 Thread Greg KH
On Sun, Mar 20, 2011 at 11:42:36PM +0530, Shreyansh Jain wrote: Hi Greg On Sun, Mar 20, 2011 at 9:28 PM, Greg KH g...@kroah.com wrote: On Sun, Mar 20, 2011 at 09:04:21PM +0530, Shreyansh Jain wrote: Dear List, I recently compiled and booted up the 2.6.37 kernel on my Ubuntu (10.04

Re: Unable to remove kernel module showing permanent using lsmod

2011-03-24 Thread Greg KH
On Thu, Mar 24, 2011 at 02:47:15PM +0700, Kacrut wrote: On 03/24/2011 01:38 PM, Mulyadi Santosa wrote: On Thu, Mar 24, 2011 at 12:08, sakthi selvamsakthi@gmail.com wrote: But in my case, cleanup module also available in memory, after loading the module. I used to check using the file

Re: Attr Groups in sysfs.

2011-04-18 Thread Greg KH
On Mon, Apr 18, 2011 at 11:45:23AM +0200, Gasparini Andrea wrote: Hi, I've a pattern similar to this in sysfs: /sys/.../mykobj/myattr_group/attr. And I've some different attr groups, but I'm willing to group also the get/set functions and recognize at runtime which kobj,group,and attribute

Re: 2.6.38 Nvidia Problems : NVRM: The system BIOS may have misconfigured your GPU.

2011-04-25 Thread Greg KH
On Tue, Apr 26, 2011 at 01:27:30AM +0530, mindentropy wrote: On Monday 25 Apr 2011 11:06:08 pm Greg KH wrote: On Mon, Apr 25, 2011 at 12:37:58AM -0700, Venkatram Tummala wrote: Hi, I am trying to run 2.6.38(x86_64) with nvidia 7200GS video card with 4GB of RAM. Then please

Re: LTS kernel?

2011-04-25 Thread Greg KH
On Mon, Apr 25, 2011 at 05:30:17PM -0400, Greg Freemyer wrote: All, I just read http://article.gmane.org/gmane.linux.kernel.stable/9103 It talks about the new longterm 2.6.34 kernel release. new? It's been going on for almost a year now. Does anyone know if longterm in this case just

Re: LTS kernel?

2011-04-25 Thread Greg KH
On Mon, Apr 25, 2011 at 05:53:31PM -0400, Greg Freemyer wrote: On Mon, Apr 25, 2011 at 5:42 PM, Greg KH g...@kroah.com wrote: On Mon, Apr 25, 2011 at 05:30:17PM -0400, Greg Freemyer wrote: All, I just read http://article.gmane.org/gmane.linux.kernel.stable/9103 It talks about

Re: thinking of updating the canonical online udev document

2011-04-26 Thread Greg KH
On Tue, Apr 26, 2011 at 08:12:44AM -0400, Robert P. J. Day wrote: [not sure if this is the right forum for this, but i suspect others on this list might be interested so ... there you go.] The linux-hotp...@vger.kernel.org list is where this should be discussed, please take it there. as

Re: Compiling single module

2011-04-26 Thread Greg KH
On Tue, Apr 26, 2011 at 05:41:12AM -0700, Ezequiel García wrote: I think maybe this is because I need to enable the module by on config. Am I right? Yes. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Staging git tree

2011-04-27 Thread Greg KH
On Wed, Apr 27, 2011 at 05:44:57PM -0700, Ezequiel García wrote: Hi everyone, I would like to know where can I find the most recently added staging patches. I heard something about Greg's tree, but I'm not sure wich git tree is it. Look in the kernel MAINTAINERS file, it will show you where it

Re: looking for decent summary of kernel debugging primitives

2011-05-02 Thread Greg KH
On Mon, May 02, 2011 at 10:31:54PM +0530, Vikram Narayanan wrote: i'm getting ready to teach a basic device drivers course in a couple weeks with someone else's courseware and i just wanted to bring some sections up to date. there's one section on basic debugging that covers printk() as

Re: need help with my first device driver

2011-05-03 Thread Greg KH
On Tue, May 03, 2011 at 10:35:02PM +0530, Prashant Shah wrote: On Fri, Apr 29, 2011 at 8:51 PM, Greg KH g...@kroah.com wrote: On Fri, Apr 29, 2011 at 03:10:53PM +0530, Prashant Shah wrote: Hi, I am trying to write a comedi (drivers/staging/comedi) based driver for the National

Re: confused by char dev registration in a gpio driver

2011-05-03 Thread Greg KH
On Tue, May 03, 2011 at 05:21:11PM -0400, Robert P. J. Day wrote: i'm sure i'm going to embarrass myself here but i was perusing the char drivers for nice examples, and i ran across this excerpt in pc8736x_gpio.c: = begin = if (major) { devid =

Re: if cdev_add() fails, do you need to put the cdev's kobject?

2011-05-03 Thread Greg KH
On Tue, May 03, 2011 at 05:46:05PM -0400, Robert P. J. Day wrote: still perusing various drivers to use as examples in class, and i ran across this snippet in the load routine of drivers/char/raw.c: = start excerpt = cdev_init(raw_cdev, raw_fops); ret =

Re: Faking PCI devices?

2011-05-04 Thread Greg KH
On Wed, May 04, 2011 at 11:39:20AM +0200, Manohar Vanga wrote: Hi, I have written a simulated driver for a PCI board and am looking for a clean way to use the driver. Currently, I am setting the PCI ids to PCI_ANY_ID and only allowing a single probe call to go through using a global variable

Re: Confusion in kobjects

2011-05-04 Thread Greg KH
On Wed, May 04, 2011 at 07:26:44PM +0530, Vikram Narayanan wrote: The kernel doc (kobject.txt) says that No structure should EVER have more than one kobject embedded within it. If it does, the reference counting for the object is sure to be messed up and incorrect, and your code will be

Re: registering a character driver without cdev_init()/cdev_add()

2011-05-04 Thread Greg KH
On Wed, May 04, 2011 at 06:55:17AM -0400, Robert P. J. Day wrote: so rather than the canonical combination of cdev_init() and cdev_add(), this appears to register the pre-defined DSP56K major number, then goes straight to registering the driver with sysfs. is this now an alternative way

Re: how to see the minor numbers allocated to a driver?

2011-05-04 Thread Greg KH
On Wed, May 04, 2011 at 09:40:52AM -0400, Robert P. J. Day wrote: something i was curious about way back when -- given that register_chrdev_region() and alloc_chrdev_region() allow one to specify a range of minor numbers desired that doesn't necessarily have to start at zero, is there a

Re: so what's the deal with the proposed /sys/subsystem?

2011-05-07 Thread Greg KH
On Sat, May 07, 2011 at 06:54:35AM -0400, Robert P. J. Day wrote: still methodically perusing the courseware i'll be teaching week after next, right now going through section on kobjects and sysfs and reading the kernel doc file Documentation/sysfs-rules.txt, which mentions a proposed

Re: How to find SCSI device to USB device association.

2011-05-09 Thread Greg KH
On Mon, May 09, 2011 at 12:12:15PM -0700, StephanT wrote: Hi all, System description: disk-less ARM, 32M, Linux 2.6.30, 4 USB ports. I plug in two USB flash sticks and I get: % df -h /dev/sda1 3.7G 32.1M 3.5G 1% /media/sda1 /dev/sdb1 7.4G

Re: do all kobjects in a kset need to be the same ktype?

2011-05-10 Thread Greg KH
On Tue, May 10, 2011 at 07:07:18AM -0400, Robert P. J. Day wrote: in the current version of the header file kobject.h, there's this comment: /** * struct kset - a set of kobjects of a specific type, belonging to a specific subsystem. * * A kset defines a group of kobjects. They

Re: module loading order

2011-05-11 Thread Greg KH
On Wed, May 11, 2011 at 09:00:30AM +0100, Simon Leung wrote: Hi all, This is a question that arose from a older kernel ( 2.6.21 ) but I think it's generic to all kernels. Actually this might not a question on the kernel itself at all. So here it goes, I'm using a USB 3G modem with this

Re: module loading order

2011-05-11 Thread Greg KH
On Wed, May 11, 2011 at 09:38:28PM +0530, Vikram Narayanan wrote: This is a question that arose from a older kernel ( 2.6.21 ) but I think it's generic to all kernels. Actually this might not a question on the kernel itself at all. So here it goes, I'm using a USB 3G modem with this

Re: module loading order

2011-05-11 Thread Greg KH
On Wed, May 11, 2011 at 10:24:28PM +0100, Simon Leung wrote: Yes, and so is the option module. But you are looking at a wierd device that somehow thinks it is both an option device, and a pl2303 device, which are totally different chipsets. If I understand modules.dep correctly, it

Re: tools to identify bugs in driver

2011-05-11 Thread Greg KH
On Thu, May 12, 2011 at 10:04:04AM +0530, Amit Nagal wrote: Hi , What are the mandatory tools that must be run to identify potential bugs ( say memory , locking etc ) in a linux device driver ? Turn lockdep and the kernel memory leak detector and run your driver and see what happens. Have

Re: module loading order

2011-05-12 Thread Greg KH
On Thu, May 12, 2011 at 09:33:32AM +0100, Simon Leung wrote: But the problem here is that pl2303 should not be loaded at all as it's for USB-serial adapter, not 3G modem. I'm not sure what controls that. The descriptors of the device itself. What does 'lsusb' show with this device

Re: Module to sanitize freed memory ?

2011-05-12 Thread Greg KH
On Thu, May 12, 2011 at 05:12:19PM +0200, Chris Laberti wrote: Hi, Is there a kernel module that sanitizes (overwrites) freed memory ? Or maybe does sysctl offer something like this ? What's wrong with the kernel option that does this for you (CONFIG_DEBUG_SLAB)? No need to write a separate

Re: kernel BUG while reading from SPI into static buffer

2011-05-13 Thread Greg KH
On Fri, May 13, 2011 at 12:33:15PM +0530, Felix Varghese wrote: Hi, I am trying to read some data via SPI on an a modified (custom SPI device attached) AT91SAM9G20-EK board. If I pass a local array buffer, declared as char buffer[100]; as the rx_buf pointer for the spi transfer, the code

Re: confused by char dev registration in a gpio driver

2011-05-13 Thread Greg KH
On Fri, May 13, 2011 at 11:05:08AM -0600, Jim Cromie wrote: On Tue, May 10, 2011 at 12:40 PM, Greg KH g...@kroah.com wrote: On Tue, May 10, 2011 at 11:26:59AM -0600, Jim Cromie wrote: lets start with a list of grumbles about current api ? ... Are the insanities you alluded

Re: is the tickless kernel now the standard?

2011-05-15 Thread Greg KH
On Sun, May 15, 2011 at 01:48:43PM -0400, Robert P. J. Day wrote: On Sun, 15 May 2011, Greg KH wrote: On Sun, May 15, 2011 at 12:41:30PM -0400, Robert P. J. Day wrote: given that ubuntu ships with the kernel configured for tickless behaviour, and that RHEL6 also ships tickless

Re: how to detect a user who changed a particular file in Linux.

2011-05-16 Thread Greg KH
On Mon, May 16, 2011 at 03:02:10PM +0530, V.Ravikumar wrote: Hi all, (Note : I'm writing this mail to this kernel group as I did not find any suitable mechanism in application level for my below need). If a  file modified by some user then how can we detect that user who modified it.

Re: should failed calls to device_register() always call put_device()?

2011-05-28 Thread Greg KH
On Sat, May 28, 2011 at 06:00:10PM +0200, Belisko Marek wrote: Hi Robert, On Sat, May 28, 2011 at 5:15 PM, Robert P. J. Day rpj...@crashcourse.ca wrote:  from drivers/base/core.c, we have the fairly unambiguous advice: * NOTE: _Never_ directly free @dev after calling this function,

Re: should failed calls to device_register() always call put_device()?

2011-05-29 Thread Greg KH
On Sun, May 29, 2011 at 07:21:10AM -0400, Robert P. J. Day wrote: On Sun, 29 May 2011, Greg KH wrote: Trust me, dig through the driver core and kobject model, it's tricky to follow, but it's there. Or at least it was there the last time I did this, that is why I documented it so

Re: academia contribution to the kernel

2011-05-30 Thread Greg KH
On Tue, May 31, 2011 at 01:05:28AM +0200, Javier Martinez Canillas wrote: Hello, A few days ago Greg k-h posted in his blog asking to send questions that he could make in his interview with Linus at LinuxCon Japan. Sadly his keynote is tomorrow so I'm a bit late to send him a question It's

Re: academia contribution to the kernel

2011-05-31 Thread Greg KH
On Tue, May 31, 2011 at 06:43:34AM +, bodhim...@gmail.com wrote: On that note, my question is will Linux Kernel 3.0 finally solve the issues with Macintosh's HPS+ filesystem and finally support it or at least have a full integration between the two OS? What is wrong with Linux's current

Re: academia contribution to the kernel

2011-05-31 Thread Greg KH
On Tue, May 31, 2011 at 08:09:31AM +, bodhim...@gmail.com wrote: Hi! Thanks for the speedy reply. My problem is that I can't read and copy the files within the said filesystem. I searched the net and the forums but there seem no final guide or resolution to it. Is there? If so, pls.

Re: academia contribution to the kernel

2011-05-31 Thread Greg KH
On Tue, May 31, 2011 at 09:44:25PM +1200, Ronnie Collinson wrote: Quite generic, but over the last N months or year what feature or some form of milestone has excited and/or pleased you the most, excluding 2.3 numbering. Could be intersting. Ah, yes, you were not the first one to think of this

Re: academia contribution to the kernel

2011-05-31 Thread Greg KH
On Tue, May 31, 2011 at 04:30:15PM +0200, Javier Martinez Canillas wrote: On Tue, May 31, 2011 at 2:58 PM, Greg KH g...@kroah.com wrote: On Tue, May 31, 2011 at 09:44:25PM +1200, Ronnie Collinson wrote: Quite generic, but over the last N months or year what feature or some form

Re: questions for Linus

2011-05-31 Thread Greg KH
On Wed, Jun 01, 2011 at 10:32:55AM +0800, Pei Lin wrote: As the newbie, look at here, suddenly one thought rush in my brain. After twenty years development, the kernel became bigger and bigger. The cost time for building the kernel becomes much more. Sure, more code that does more and more

Re: questions for Linus

2011-06-01 Thread Greg KH
On Wed, Jun 01, 2011 at 12:10:45PM +0530, nilesh wrote: Hi Greg, Included the list as the recipient. On Wed, 2011-06-01 at 10:44 +0900, Greg KH wrote: On Tue, May 31, 2011 at 02:12:36PM +0700, Mulyadi Santosa wrote: Hi Greg.. I came with these questions for Linus, hope you're kind

Re: surviving in lkml

2011-06-02 Thread Greg KH
On Thu, Jun 02, 2011 at 02:51:45AM +0100, João Eduardo Luís wrote: Quite nice presentation. Although I was hoping to see something stating the correct protocol to repost a question to the list, either because the previous one was ignored or just went by unnoticed. Just resend it.

Re: Implementing RFC 6056

2011-06-02 Thread Greg KH
On Thu, Jun 02, 2011 at 10:58:40PM +0530, Arjun S R wrote: On Wed, Jun 1, 2011 at 03:11, Greg KH g...@kroah.com wrote: On Wed, Jun 01, 2011 at 12:38:34AM +0530, Arjun S R wrote: Hi, I would like implement RFC 6506 in linux kernel. It seems no one has implemented it. Its mainly about

Re: Linux module for causing a system hard lock-up

2011-06-08 Thread Greg KH
On Wed, Jun 08, 2011 at 11:24:06PM +0100, limp wrote: Hello, Could anyone please let me know how can I achieve this? Is hard lockup detector enabled in your system? Could you post your .config. Hi there, At the moment I haven't enabled a hard lockup detector (I guess you're talking

Re: interrupt

2011-06-11 Thread Greg KH
On Sat, Jun 11, 2011 at 04:01:45PM +0530, Venkateswarlu P wrote: Is each key press  is an interrupt ? Depends on the type of keyboard. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to find Bluetooth device type

2011-06-29 Thread Greg KH
On Thu, Jun 30, 2011 at 10:10:03AM +0530, पारस wrote: I tried to ask this question on above mailing list, but I am getting following error massage. Follow the directions given in the error message and resend it. ___ Kernelnewbies mailing list

Re: read / write / close sync for device files

2011-07-04 Thread Greg KH
On Mon, Jul 04, 2011 at 06:13:49PM +0530, Amit Nagal wrote: Hi , if a application is doing read /write I/O with a usb device , in 2 different threads in userspace , What type of USB device? and at usb disconnect event , read thread returns with error and application calls close()

Re: read / write / close sync for device files

2011-07-05 Thread Greg KH
On Tue, Jul 05, 2011 at 12:37:26PM +0530, Amit Nagal wrote: so do the usb-core layers or VFS layers maintains some locks that take care that if read / write is in progress and application calls close() , corresponding release() method in usb driver will be called only upon completion of all

Re: Query about UIO

2011-07-07 Thread Greg KH
On Thu, Jul 07, 2011 at 03:32:54PM +0800, bill wrote: Hi, Greg I've been reading the UIO code, one place puzzled me a lot. May I ask one question about it? --- drivers/uio/uio.c static int

Re: data transfer from kernel to user space

2011-07-12 Thread Greg KH
On Tue, Jul 12, 2011 at 12:26:35PM +0530, Amit Nagal wrote: After all even for stream-oriented device (as in my case ) , we need to copy data from kernel buffer to user-space buffer , and if copy can be avoided via any mechanism , it will be much faster . Have you really measured your data

Re: question about staging tree branches

2011-07-12 Thread Greg KH
On Tue, Jul 12, 2011 at 12:15:17PM +0530, Prashant Shah wrote: Hi, There are 4 branches in the staging tree remotes/staging/master remotes/staging/ralink remotes/staging/staging-linus remotes/staging/staging-next Is the staging-linus is what Linus merges and staging-next is

Re: Compiling kernel module ...

2011-08-06 Thread Greg KH
On Sat, Aug 06, 2011 at 11:34:46AM -0700, Abu Rasheda wrote: On Fri, Aug 5, 2011 at 5:10 PM, Akash email2akashj...@gmail.com wrote: Use #if like #define KERNEL_VERSION(a,b,c) (((a) 16) + ((b) 8) + (c)) #if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 33)    // New

Re: Compiling kernel module ...

2011-08-06 Thread Greg KH
On Sat, Aug 06, 2011 at 11:52:06AM -0700, Abu Rasheda wrote: Get the code merged upstream so you never have to worry about it again. Greg, my issue is basic. I am talking about change in parameter .create of net_proto_family struct. It seems that Scientific Linux had it back

Re: Need help in understanding sysfs

2011-08-10 Thread Greg KH
On Wed, Aug 10, 2011 at 12:09:25PM -0700, Vaibhav Jain wrote: Hi, I need to undestand sysfs and make changes to it. What specifically do you need to understand, and what do you want to change? sysfs is a very vast subject, and vague, we need specifics. greg k-h

Re: Need help in understanding sysfs

2011-08-10 Thread Greg KH
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Wed, Aug 10, 2011 at 12:31:13PM -0700, Vaibhav Jain wrote: Hi,   I need to understand actually how sysfs works and what is the hierarchy of the sysfs directory structure. Again, that is very

Re: Need help in understanding sysfs

2011-08-10 Thread Greg KH
On Wed, Aug 10, 2011 at 02:43:31PM -0700, Vaibhav Jain wrote: Sorry for the vague question. I would clarify. There are two things I need : 1- I need to know how information is organized in the sysfs and understand the concepts of kobjects , attributes etc. Please read the in-kernel

Re: Thunderbolt and Mac Book Pro

2011-08-16 Thread Greg KH
On Tue, Aug 16, 2011 at 06:21:52PM -0400, Greg Freemyer wrote: Can anyone tell me the status of the linux kernel getting Thunderbolt support for the latest Mac Book Pro? None at this point in time, sorry. I'm going to be kicking a few people that work at Intel on this code this week, so

Re: Thunderbolt and Mac Book Pro

2011-08-17 Thread Greg KH
On Tue, Aug 16, 2011 at 03:34:07PM -0700, Greg KH wrote: On Tue, Aug 16, 2011 at 06:21:52PM -0400, Greg Freemyer wrote: Can anyone tell me the status of the linux kernel getting Thunderbolt support for the latest Mac Book Pro? None at this point in time, sorry. I'm going to be kicking

Re: multiple dependent out-of-tree modules

2011-08-18 Thread Greg KH
On Thu, Aug 18, 2011 at 10:40:12PM -0300, Jorgyano Bruno wrote: Hello guys! I'm working with three out-of-tree kernel modules,  one of them export symbols used by the others.  At compile time, MODPOST warns about undefined symbols,  which are defined on the first module  and used in the

Re: question about staging tree branches

2011-08-23 Thread Greg KH
On Tue, Jul 12, 2011 at 07:34:58PM +0300, Daniel Baluta wrote: On Tue, Jul 12, 2011 at 7:01 PM, Greg KH g...@kroah.com wrote: On Tue, Jul 12, 2011 at 12:15:17PM +0530, Prashant Shah wrote: Hi, There are 4 branches in the staging tree   remotes/staging/master   remotes/staging/ralink

Re: Unknown symbol usb_register_driver

2011-08-29 Thread Greg KH
On Tue, Aug 30, 2011 at 12:45:11AM +0530, Prajosh Premdas wrote: Hi  I am using Linux-2.6.31-14 based on Ubuntu karmic. I am developing a proprietary usb driver and was doing my study . The Linux USB subsystem does not allow non-GPL kernel drivers, sorry. greg k-h

Re: Unknown symbol usb_register_driver

2011-08-29 Thread Greg KH
On Mon, Aug 29, 2011 at 01:56:20PM -0700, Jeff Haran wrote: -Original Message- From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- boun...@kernelnewbies.org] On Behalf Of Greg KH Sent: Monday, August 29, 2011 12:33 PM To: Prajosh Premdas Cc: kernelnewbies

Re: Uniquely Identify Machine

2011-09-05 Thread Greg KH
On Mon, Sep 05, 2011 at 02:07:35PM +0530, Gaurav Mahajan wrote:   I wan to recognize a particular machine uniquely. This can be done from userspace using the proper dbus api call. It's not a kernel issue. ___ Kernelnewbies mailing list

Re: Parallel IO port conflict (driver problem)

2011-09-05 Thread Greg KH
On Tue, Sep 06, 2011 at 08:58:34AM +0800, Shenli Zhu wrote: Hi all, I am reading Linux device driver 3rd. I try to insmod the short example(a example use parallel port). But the port 0x378 is allocated to parport. And parport is used by ppdev, parport_pc and lp. Shall I rmmod all these

Re: Cannot read using USB Skeleton Driver

2011-09-16 Thread Greg KH
On Thu, Sep 15, 2011 at 07:02:59PM +0530, Felix Varghese wrote: Hi, I have been trying to communicate with a custom usb device from a SAM9G20-EK board using the usb-skeleton.c driver example in the linux source. I modified the driver to add my device's vendor and product id. The USB device

Re: Cannot read using USB Skeleton Driver

2011-09-19 Thread Greg KH
On Mon, Sep 19, 2011 at 11:13:33AM +0530, Felix Varghese wrote: Just do:        modprobe usb_serial vendor=0x product=0x with the proper vendor and product ids for your device, then plug it in. No kernel changes needed at all, just have a pair of bulk in/out endpoints and all

Re: Cannot read using USB Skeleton Driver

2011-09-21 Thread Greg KH
On Wed, Sep 21, 2011 at 06:59:57PM +0530, Felix Varghese wrote: Does anybody have anything to add or oppose on this or would you guys rather have me send a patch along with my changes? Patches are always best, we can review that and go from there. greg k-h

Re: [PATCH] hwmon class driver registration with a device number

2011-10-06 Thread Greg KH
On Thu, Oct 06, 2011 at 09:40:11AM +0530, Himanshu Chauhan wrote: Hi Greg, How do you later remove a device created with this new interface? As it is, I think the existing calls will fail, right? If I have not missed out anything from hwmon_device_unregister(), it shouldn't fail.

Re: How to open and write to a block driver within a character driver?

2011-10-06 Thread Greg KH
On Thu, Oct 06, 2011 at 03:43:08PM -0700, Yang Xiang wrote: Hi Greg, Let me rephrase my question then. If I am in kernel space and in another device driver and I need to write a log entry of some sort to another block device, do I just perform an open and write as if I am in user space?

Re: [lm-sensors] [PATCH] hwmon class driver registration with a device number

2011-10-07 Thread Greg KH
On Fri, Oct 07, 2011 at 12:12:40PM +0530, Himanshu Chauhan wrote: On Thu, Oct 06, 2011 at 12:07:52PM -0700, Guenter Roeck wrote: And why, and what for. The initial idea of posting to kernelnewbies was to get a hint on how the patch would be taken as. I wanted to know if developers will like

Re: [lm-sensors] [PATCH] hwmon class driver registration with a device number

2011-10-07 Thread Greg KH
On Fri, Oct 07, 2011 at 03:26:21PM +0530, Himanshu Chauhan wrote: On Thu, Oct 06, 2011 at 11:52:37PM -0700, Greg KH wrote: On Fri, Oct 07, 2011 at 12:12:40PM +0530, Himanshu Chauhan wrote: On Thu, Oct 06, 2011 at 12:07:52PM -0700, Guenter Roeck wrote: And why, and what

Re: calculating ring buffer size

2011-10-17 Thread Greg KH
On Mon, Oct 17, 2011 at 03:31:02PM +0530, Amit Nagal wrote: Hi , While going through a few usb drivers code , i observed that the drivers maintain a ring buffer which stores data coming from usb device in interrupt context . Also these ring buffers is a power of 2 size i am looking

Re: how to check kernel is configured with preemption or not

2011-10-23 Thread Greg KH
On Sun, Oct 23, 2011 at 11:20:03PM -0400, Greg Freemyer wrote: On Sun, Oct 23, 2011 at 1:34 PM, sri bskmo...@gmail.com wrote: No, uname did not show anything. Is there any way to get the kernel preemption mode, programatically? Thanks, --Sri On Fri, Oct 21, 2011 at 6:41 PM, Daniel

Re: how to check kernel is configured with preemption or not

2011-10-26 Thread Greg KH
On Wed, Oct 26, 2011 at 11:52:07PM +0530, sri wrote: Am working on a problem where the system hanging after some unequal intervals, with the below o/p printing on the console, Though this might be mostly tighten to the click router module am using, but I see the do_IRQ in the stack trace

Re: Problem in configuring the kernel

2011-11-06 Thread Greg KH
On Sun, Nov 06, 2011 at 06:29:14PM +0530, Naman Shekhar Mishra wrote: I have been trying to configure the kernel for my Lenovo 300 N100 machine. First I tried to use:     $make defconfig but this doesn't work and there is a kernel panic when I boot with the new kernel. What panic is it?

Re: How can I know what is tainting my kernel

2011-11-12 Thread Greg KH
On Sat, Nov 12, 2011 at 08:23:32PM -0200, Daniel Hilst Selli wrote: Two questions about taint system.. 1. I have a installation of archlinux with kernel 3.0, just after boot I cat /proc/sys/kenrel/tainted and receives 1024, but cat /var/log/messages | grep -i taint gives me no output. How

Re: How can I know what is tainting my kernel

2011-11-12 Thread Greg KH
On Sun, Nov 13, 2011 at 01:18:47AM +0100, Jonathan Neuschäfer wrote: On Sat, Nov 12, 2011 at 03:49:53PM -0800, Greg KH wrote: On Sat, Nov 12, 2011 at 08:23:32PM -0200, Daniel Hilst Selli wrote: Two questions about taint system.. 1. I have a installation of archlinux with kernel 3.0

Re: contribute to linux kernel

2011-11-14 Thread Greg KH
On Mon, Nov 14, 2011 at 05:35:38PM -0500, Mayank Agarwal wrote: Hi all, I have just joined the kernelnewbies.I want to contribute to linux kernel or to any of the open source ongoing projects.Has good experience in c,c++ and linux programming. Please suggest how can i go about that.

Re: How can I know what is tainting my kernel

2011-11-15 Thread Greg KH
On Sun, Nov 13, 2011 at 07:47:11PM +0100, Jonathan Neuschäfer wrote: On Sat, Nov 12, 2011 at 04:39:59PM -0800, Greg KH wrote: On Sun, Nov 13, 2011 at 01:18:47AM +0100, Jonathan Neuschäfer wrote: On Sat, Nov 12, 2011 at 03:49:53PM -0800, Greg KH wrote: On Sat, Nov 12, 2011 at 08:23:32PM

Re: Filtering USB storage data in kernel module

2011-11-17 Thread Greg KH
On Thu, Nov 17, 2011 at 02:15:35PM +0530, Abhijit Pawar wrote: Hi All, I need to filter the data written/read to and from the USB storage disk. Why? What are you wanting to do at filter time? Why just USB disks? What makes them special? How are you going to determine if a disk is a USB

Re: Filtering USB storage data in kernel module

2011-11-18 Thread Greg KH
On Fri, Nov 18, 2011 at 06:36:18PM +0530, Abhijit Pawar wrote: On 11/17/2011 08:19 PM, Greg KH wrote: On Thu, Nov 17, 2011 at 02:15:35PM +0530, Abhijit Pawar wrote: Hi All, I need to filter the data written/read to and from the USB storage disk. Why? I want to build a secure machine

Re: GPL-only symbol Error

2011-11-22 Thread Greg KH
On Tue, Nov 22, 2011 at 02:08:59PM -0800, Sengottuvelan S wrote: Hi Jeff,   I have few symbols with this error especially - sock_recv_timestamp(). Is there way to refer this or similar API in my module with MODULE_LICENSE is Proprietary. How do I know equavalent non-EXPORT_SYMBOL_GPL  APIs

Re: GPL-only symbol Error

2011-11-22 Thread Greg KH
On Tue, Nov 22, 2011 at 02:35:24PM -0800, Jeff Haran wrote: I've seen others when faced with this who build their own kernels from sources just modify the problematic EXPORT_SYMBOL_GPL()s to EXPORT_SYMBOL()s. I don't know if that is legal. I wouldn't do it personally. Consult a lawyer before

  1   2   3   4   5   6   7   8   9   10   >