Re: Strategies for accessing driver data from file operations!?

2014-08-13 Thread Daniel Hilst Selli
On 08/12/2014 04:53 PM, Greg KH wrote: On Tue, Aug 12, 2014 at 10:47:20AM -0300, Daniel Hilst Selli wrote: I was writing an spi driver, and taking a look into spidev.c, I see the the author allocates a linked list to hold driver data instances. From open it iterates over the list comparing

Strategies for accessing driver data from file operations!?

2014-08-12 Thread Daniel Hilst Selli
I was writing an spi driver, and taking a look into spidev.c, I see the the author allocates a linked list to hold driver data instances. From open it iterates over the list comparing two dev_t fields, one from current element on list other from struct inode * parameter, here is the lines:

Re: Exporting ioctls from out-of-tree module to userspace

2014-07-17 Thread Daniel Hilst Selli
the *source* tree, which seems to do the right thing. in newer kernels, due to 10b63956fce7f369cc37fd4d994f09bd5203efe4, you need to do the same thing in include/uapi/Kbuild... kind regards anupam On Thu, Jul 17, 2014 at 12:27 AM, Daniel Hilst Selli danielhi...@gmail.com wrote: I write an out

Exporting ioctls from out-of-tree module to userspace

2014-07-16 Thread Daniel Hilst Selli
I write an out-of-tree module and now want to export its ioctls to userspace by installing a header that my modules includes, I was looking for how to do it but can't get it.. I was trying header-y from https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt but got: make[1]: *** No

spi_board_info and module automatic load

2014-06-10 Thread Daniel Hilst Selli
I register a spi_board_info on my board-*.c file as this http://pastebin.com/nUGuvt71 Then create my module named mydevice.ko Is this enought to get the module loaded automatically or I'm missing something? Cheers ___ Kernelnewbies mailing list

Re: Online migration of arbitrary filesystems, possible?

2013-04-01 Thread Daniel Hilst
On 29-03-2013 18:06, valdis.kletni...@vt.edu wrote: On Fri, 29 Mar 2013 17:09:14 -0300, Daniel Hilst said: The idea is, mount both filesystems together, and make write/read operations go on this way Read operations: 1. See if data is already on dest fs, 2. If is then read data

Re: Online migration of arbitrary filesystems, possible?

2013-04-01 Thread Daniel Hilst
On 29-03-2013 17:28, Greg Freemyer wrote: On Fri, Mar 29, 2013 at 4:09 PM, Daniel Hilst danielhi...@gmail.com wrote: Suppose that I have two big filesystems, dest fs and source fs.. I want to copy whole source fs to dest fs, but I need to keep source filesystem online I can't mount source fs

Online migration of arbitrary filesystems, possible?

2013-03-29 Thread Daniel Hilst
Suppose that I have two big filesystems, dest fs and source fs.. I want to copy whole source fs to dest fs, but I need to keep source filesystem online I can't mount source fs read only and copy.. The idea is, mount both filesystems together, and make write/read operations go on this way Read

Re: Tracing SIGKILL, is that possible?

2013-02-19 Thread daniel hilst
Em 18/02/2013 16:09, valdis.kletni...@vt.edu escreveu: On Mon, 18 Feb 2013 15:46:58 -0300, Daniel. said: Is there a way to track signals, specially SIGKILL. I would like to know if some process dies because reach some resource limit, because an OMM error or something likewise.. Depends on

Update kernel without boot!?!? From oracle/linux site

2012-05-10 Thread Daniel Hilst
From oracle/linux[1] site, they're bragging about having the unique OS that can have kernel updated on the fly.. I have two questions: 1) Is that possible, and if is, can this be safe??? On PDF they say about a module that does the trick.. 2) Is there any open software project trying this?

Re: Kernel threads and system usage metric.

2012-03-12 Thread Daniel Hilst
On 03/09/2012 06:25 PM, Mulyadi Santosa wrote: Hi :) On Fri, Mar 9, 2012 at 18:39, Daniel Hilstdanielhi...@gmail.com wrote: The processes that appear in top with brackets are the kernel threads? Yup :) If so, this threads spend all its time on system mode, right? Yes, it supposed to ...

Kernel threads and system usage metric.

2012-03-09 Thread Daniel Hilst
Doubt! The processes that appear in top with brackets are the kernel threads? If so, this threads spend all its time on system mode, right? By the system mode I mean the %sy on top header, since kernel threads hasn't any memory mapped to user space, it can't run on user space at any time,

How can I know what is tainting my kernel

2011-11-12 Thread Daniel Hilst Selli
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 can I know what is tainting my kernel? 2. I was studying char devices,

Char device initialization

2011-11-09 Thread Daniel Hilst Selli
I'm trying to create a example char device. The example compiles fine, but when I try to cat I got No such device or address. I have reviewed the code thousend times and can't see what I'm missing Here is the code - http://pastebin.com/Td03U0fK The read method is not good, I know, but is never

Re: Dev Environment?

2011-08-14 Thread Daniel Hilst Selli
Em 14-08-2011 05:59, Mulyadi Santosa escreveu: Hi :) On Sun, Aug 14, 2011 at 11:51, Daniel Hilst Sellidanielhi...@gmail.com wrote: Thanks Mulyadi, I was installing gentoo with qemu.. but takes soo long to install that I give up, I was thinking in a minimal distro as dsl or lfs. What you

Dev Environment?

2011-08-13 Thread Daniel Hilst Selli
Hey people.. I start to read a book about kernel, and want to make some changes to it, for study purpose. ue I think in edit it, an use qemu to test it with some minimal distribution installation. So how people usually do? Thanks! -- Do or do not... there is no try Yoda Master