Re: Board and OS suggestion

2014-08-27 Thread Kernel Apprentice
I'm a Kernel noob myself, but you do realise this is the mailing list 
for people that are trying to get into Linux Kernel Development and thus 
completely unrelated to any other Operating Systems?
Secure Os means something like tiny os available 
http://www.tinyos.net/ or SEL4 http://ssrg.nicta.com/projects/seL4/


Any board has wifi connectivity?



On Thu, Aug 28, 2014 at 10:38 AM, Kristofer Hallin 
mailto:kristofer.hal...@gmail.com>> wrote:


What do you mean with a secure OS? What do you need it to do?

(Also, is this related to the kernel?)

On 28 Aug 2014 07:04, "Robert Clove" mailto:cloverob...@gmail.com>> wrote:

Hi All,


As much of you will be doing experiments i need your advice.
I want to run some secure OS on an embedded platform like
raspberry pi or beagle board.
Can you suggest me which board is good and any secure OS that
you have try'ed?
Any board having wi fi connectivity will be an advantage.


Regards

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org

http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: U64 Ordering in File System Code of Btrfs

2014-08-27 Thread anupam kapoor
> [Thu, 28 Aug 2014 00:54:47 -0400]: "nick" (nick):
,[ nick ]
| Hey Guys,
| Thanks for the help so far. I am wondering after reading the btrfs
| code for certain functions there seem to
| be a lot of u64 variable and function returns of this type. Is this
| common in file system due to the disk
| being in a certain format and depending on the CPU being big or small
| endian that this needed to not reorder
| the disk parts that are being read into main memory and preserve the data's 
ordering?
| Cheers Nick 
`
on disk format is little-endian.

have a look at https://btrfs.wiki.kernel.org/index.php/Main_Page for
more information. 

kind regards
anupam


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Board and OS suggestion

2014-08-27 Thread Robert Clove
Secure Os means something like tiny os available http://www.tinyos.net/ or
SEL4 http://ssrg.nicta.com/projects/seL4/

Any board has wifi connectivity?



On Thu, Aug 28, 2014 at 10:38 AM, Kristofer Hallin <
kristofer.hal...@gmail.com> wrote:

> What do you mean with a secure OS? What do you need it to do?
>
> (Also, is this related to the kernel?)
> On 28 Aug 2014 07:04, "Robert Clove"  wrote:
>
>>  Hi All,
>>
>>
>> As much of you will be doing experiments i need your advice.
>> I want to run some secure OS on an embedded platform like raspberry pi or
>> beagle board.
>> Can you suggest me which board is good and any secure OS that you have
>> try'ed?
>> Any board having wi fi connectivity will be an advantage.
>>
>>
>> Regards
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


U64 Ordering in File System Code of Btrfs

2014-08-27 Thread nick
Hey Guys,
Thanks for the help so far. I am wondering after reading the btrfs code for 
certain functions there seem to 
be a lot of u64 variable and function returns of this type. Is this common in 
file system due to the disk
being in a certain format and depending on the CPU being big or small endian 
that this needed to not reorder
the disk parts that are being read into main memory and preserve the data's 
ordering?
Cheers Nick 

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Board and OS suggestion

2014-08-27 Thread Kristofer Hallin
What do you mean with a secure OS? What do you need it to do?

(Also, is this related to the kernel?)
On 28 Aug 2014 07:04, "Robert Clove"  wrote:

> Hi All,
>
>
> As much of you will be doing experiments i need your advice.
> I want to run some secure OS on an embedded platform like raspberry pi or
> beagle board.
> Can you suggest me which board is good and any secure OS that you have
> try'ed?
> Any board having wi fi connectivity will be an advantage.
>
>
> Regards
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Board and OS suggestion

2014-08-27 Thread Robert Clove
Hi All,


As much of you will be doing experiments i need your advice.
I want to run some secure OS on an embedded platform like raspberry pi or
beagle board.
Can you suggest me which board is good and any secure OS that you have
try'ed?
Any board having wi fi connectivity will be an advantage.


Regards
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Btrfs Issues

2014-08-27 Thread Manish Katiyar
On Wed, Aug 27, 2014 at 8:37 PM, nick  wrote:

>
>
> On 14-08-27 11:07 PM, Manish Katiyar wrote:
> > Is your btrfs on an external drive and did you remove the drive and then
> > try to unmount the filesystem ?
> >
> > Thanks -
> > Manish
> >
> >
> > On Wed, Aug 27, 2014 at 1:22 PM, nick  wrote:
> >
> >> When booting on an Ubuntu kernel I am hitting this in my dmesg with an
> >> external drive I have.
> >> I am wondering if this is a bug or just a common issue.
> >> 8518.918519] [ cut here ]
> >> [ 8518.918528] WARNING: CPU: 1 PID: 13778 at
> >> /build/buildd/linux-3.13.0/fs/btrfs/super.c:254
> >> __btrfs_abort_transaction+0x50/0x110 [btrfs]()
> >> [ 8518.918529] btrfs: Transaction aborted (error -5)
> >> [ 8518.918530] Modules linked in: btrfs raid6_pq libcrc32c xor ses
> >> enclosure usb_storage bnep rfcomm bluetooth hid_generic usbhid hid
> >> eeepc_wmi asus_wmi sparse_keymap intel_rapl x86_pkg_temp_thermal
> >> intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul
> >> ghash_clmulni_intel snd_hda_codec_hdmi aesni_intel aes_x86_64 lrw
> gf128mul
> >> glue_helper ablk_helper cryptd serio_raw snd_hda_codec_realtek lpc_ich
> >> snd_hda_intel snd_hda_codec snd_hwdep snd_seq_midi snd_seq_midi_event
> >> snd_pcm snd_rawmidi snd_page_alloc fglrx(POF) snd_seq parport_pc
> >> snd_seq_device snd_timer ppdev wmi mei_me snd mei mac_hid lp parport
> >> soundcore amd_iommu_v2 video ahci libahci r8169 mii
> >> [ 8518.918560] CPU: 1 PID: 13778 Comm: umount Tainted: PF   W  O
> >> 3.13.0-34-generic #60-Ubuntu
> >> [ 8518.918561] Hardware name: System manufacturer System Product
> >> Name/P8Z68-V LE, BIOS 3506 01/17/2012
> >> [ 8518.918562]  0009 8801c9ad5c50 8171bd94
> >> 8801c9ad5c98
> >> [ 8518.918564]  8801c9ad5c88 810676cd fffb
> >> 880211d72800
> >> [ 8518.918566]  8801c49d8000 a0bb2e90 060b
> >> 8801c9ad5ce8
> >> [ 8518.918568] Call Trace:
> >> [ 8518.918573]  [] dump_stack+0x45/0x56
> >> [ 8518.918576]  [] warn_slowpath_common+0x7d/0xa0
> >> [ 8518.918578]  [] warn_slowpath_fmt+0x4c/0x50
> >> [ 8518.918583]  []
> __btrfs_abort_transaction+0x50/0x110
> >> [btrfs]
> >> [ 8518.918591]  [] cleanup_transaction+0x6e/0x290
> [btrfs]
> >> [ 8518.918594]  [] ? prepare_to_wait_event+0x100/0x100
> >> [ 8518.918601]  []
> btrfs_commit_transaction+0x6ea/0x970
> >> [btrfs]
> >> [ 8518.918608]  [] btrfs_commit_super+0x8f/0xa0
> [btrfs]
> >> [ 8518.918614]  [] close_ctree+0x1e0/0x290 [btrfs]
> >> [ 8518.918617]  [] ? evict_inodes+0x11c/0x130
> >> [ 8518.918622]  [] btrfs_put_super+0x19/0x20 [btrfs]
> >> [ 8518.918625]  [] generic_shutdown_super+0x72/0xf0
> >> [ 8518.918627]  [] kill_anon_super+0x12/0x20
> >> [ 8518.918631]  [] btrfs_kill_super+0x16/0x90 [btrfs]
> >> [ 8518.918634]  [] deactivate_locked_super+0x3d/0x60
> >> [ 8518.918636]  [] deactivate_super+0x46/0x60
> >> [ 8518.918638]  [] mntput_no_expire+0xd6/0x170
> >> [ 8518.918640]  [] SyS_umount+0x8e/0x100
> >> [ 8518.918642]  [] tracesys+0xe1/0xe6
> >> [ 8518.918644] ---[ end trace 1a6b295c1d8ad4c3 ]---
> >> Nick
> >>
> >> ___
> >> Kernelnewbies mailing list
> >> Kernelnewbies@kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >>
> >
> No I just pulled it out and then I get this error. Maybe this is normally
> when not unmounted?
> Nick
>

This is expected then. It was middle of a journal transaction when you
pulled the device out.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Btrfs Issues

2014-08-27 Thread Manish Katiyar
Is your btrfs on an external drive and did you remove the drive and then
try to unmount the filesystem ?

Thanks -
Manish


On Wed, Aug 27, 2014 at 1:22 PM, nick  wrote:

> When booting on an Ubuntu kernel I am hitting this in my dmesg with an
> external drive I have.
> I am wondering if this is a bug or just a common issue.
> 8518.918519] [ cut here ]
> [ 8518.918528] WARNING: CPU: 1 PID: 13778 at
> /build/buildd/linux-3.13.0/fs/btrfs/super.c:254
> __btrfs_abort_transaction+0x50/0x110 [btrfs]()
> [ 8518.918529] btrfs: Transaction aborted (error -5)
> [ 8518.918530] Modules linked in: btrfs raid6_pq libcrc32c xor ses
> enclosure usb_storage bnep rfcomm bluetooth hid_generic usbhid hid
> eeepc_wmi asus_wmi sparse_keymap intel_rapl x86_pkg_temp_thermal
> intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul
> ghash_clmulni_intel snd_hda_codec_hdmi aesni_intel aes_x86_64 lrw gf128mul
> glue_helper ablk_helper cryptd serio_raw snd_hda_codec_realtek lpc_ich
> snd_hda_intel snd_hda_codec snd_hwdep snd_seq_midi snd_seq_midi_event
> snd_pcm snd_rawmidi snd_page_alloc fglrx(POF) snd_seq parport_pc
> snd_seq_device snd_timer ppdev wmi mei_me snd mei mac_hid lp parport
> soundcore amd_iommu_v2 video ahci libahci r8169 mii
> [ 8518.918560] CPU: 1 PID: 13778 Comm: umount Tainted: PF   W  O
> 3.13.0-34-generic #60-Ubuntu
> [ 8518.918561] Hardware name: System manufacturer System Product
> Name/P8Z68-V LE, BIOS 3506 01/17/2012
> [ 8518.918562]  0009 8801c9ad5c50 8171bd94
> 8801c9ad5c98
> [ 8518.918564]  8801c9ad5c88 810676cd fffb
> 880211d72800
> [ 8518.918566]  8801c49d8000 a0bb2e90 060b
> 8801c9ad5ce8
> [ 8518.918568] Call Trace:
> [ 8518.918573]  [] dump_stack+0x45/0x56
> [ 8518.918576]  [] warn_slowpath_common+0x7d/0xa0
> [ 8518.918578]  [] warn_slowpath_fmt+0x4c/0x50
> [ 8518.918583]  [] __btrfs_abort_transaction+0x50/0x110
> [btrfs]
> [ 8518.918591]  [] cleanup_transaction+0x6e/0x290 [btrfs]
> [ 8518.918594]  [] ? prepare_to_wait_event+0x100/0x100
> [ 8518.918601]  [] btrfs_commit_transaction+0x6ea/0x970
> [btrfs]
> [ 8518.918608]  [] btrfs_commit_super+0x8f/0xa0 [btrfs]
> [ 8518.918614]  [] close_ctree+0x1e0/0x290 [btrfs]
> [ 8518.918617]  [] ? evict_inodes+0x11c/0x130
> [ 8518.918622]  [] btrfs_put_super+0x19/0x20 [btrfs]
> [ 8518.918625]  [] generic_shutdown_super+0x72/0xf0
> [ 8518.918627]  [] kill_anon_super+0x12/0x20
> [ 8518.918631]  [] btrfs_kill_super+0x16/0x90 [btrfs]
> [ 8518.918634]  [] deactivate_locked_super+0x3d/0x60
> [ 8518.918636]  [] deactivate_super+0x46/0x60
> [ 8518.918638]  [] mntput_no_expire+0xd6/0x170
> [ 8518.918640]  [] SyS_umount+0x8e/0x100
> [ 8518.918642]  [] tracesys+0xe1/0xe6
> [ 8518.918644] ---[ end trace 1a6b295c1d8ad4c3 ]---
> Nick
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Btrfs Issues

2014-08-27 Thread anupam kapoor
> [Wed, 27 Aug 2014 16:22:56 -0400]: "nick" (nick):

,[ nick ]
| When booting on an Ubuntu kernel I am hitting this in my dmesg with an 
external drive I have.
| I am wondering if this is a bug or just a common issue.
| 8518.918519] [ cut here ]
| [ 8518.918528] WARNING: CPU: 1 PID: 13778 at
| /build/buildd/linux-3.13.0/fs/btrfs/super.c:254
| __btrfs_abort_transaction+0x50/0x110 [btrfs]()
| [ 8518.918529] btrfs: Transaction aborted (error -5)
| [ 8518.918530] Modules linked in: btrfs raid6_pq libcrc32c xor ses
| enclosure usb_storage bnep rfcomm bluetooth hid_generic usbhid hid
| eeepc_wmi asus_wmi sparse_keymap intel_rapl x86_pkg_temp_thermal
| intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul
| ghash_clmulni_intel snd_hda_codec_hdmi aesni_intel aes_x86_64 lrw
| gf128mul glue_helper ablk_helper cryptd serio_raw
| snd_hda_codec_realtek lpc_ich snd_hda_intel snd_hda_codec snd_hwdep
| snd_seq_midi snd_seq_midi_event snd_pcm snd_rawmidi snd_page_alloc
| fglrx(POF) snd_seq parport_pc snd_seq_device snd_timer ppdev wmi
| mei_me snd mei mac_hid lp parport soundcore amd_iommu_v2 video ahci
| libahci r8169 mii
| [ 8518.918560] CPU: 1 PID: 13778 Comm: umount Tainted: PF   W  O 
3.13.0-34-generic #60-Ubuntu
| [ 8518.918561] Hardware name: System manufacturer System Product Name/P8Z68-V 
LE, BIOS 3506 01/17/2012
| [ 8518.918562]  0009 8801c9ad5c50 8171bd94 
8801c9ad5c98
| [ 8518.918564]  8801c9ad5c88 810676cd fffb 
880211d72800
| [ 8518.918566]  8801c49d8000 a0bb2e90 060b 
8801c9ad5ce8
| [ 8518.918568] Call Trace:
| [ 8518.918573]  [] dump_stack+0x45/0x56
| [ 8518.918576]  [] warn_slowpath_common+0x7d/0xa0
| [ 8518.918578]  [] warn_slowpath_fmt+0x4c/0x50
| [ 8518.918583]  [] __btrfs_abort_transaction+0x50/0x110 
[btrfs]
| [ 8518.918591]  [] cleanup_transaction+0x6e/0x290 [btrfs]
| [ 8518.918594]  [] ? prepare_to_wait_event+0x100/0x100
| [ 8518.918601]  [] btrfs_commit_transaction+0x6ea/0x970 
[btrfs]
| [ 8518.918608]  [] btrfs_commit_super+0x8f/0xa0 [btrfs]
| [ 8518.918614]  [] close_ctree+0x1e0/0x290 [btrfs]
| [ 8518.918617]  [] ? evict_inodes+0x11c/0x130
| [ 8518.918622]  [] btrfs_put_super+0x19/0x20 [btrfs]
| [ 8518.918625]  [] generic_shutdown_super+0x72/0xf0
| [ 8518.918627]  [] kill_anon_super+0x12/0x20
| [ 8518.918631]  [] btrfs_kill_super+0x16/0x90 [btrfs]
| [ 8518.918634]  [] deactivate_locked_super+0x3d/0x60
| [ 8518.918636]  [] deactivate_super+0x46/0x60
| [ 8518.918638]  [] mntput_no_expire+0xd6/0x170
| [ 8518.918640]  [] SyS_umount+0x8e/0x100
| [ 8518.918642]  [] tracesys+0xe1/0xe6
| [ 8518.918644] ---[ end trace 1a6b295c1d8ad4c3 ]---
| Nick  
`
kernel is tainted with a proprietary-out-of-tree module. try without the
radeon card...

kind regards
anupam

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Btrfs Issues

2014-08-27 Thread nick
When booting on an Ubuntu kernel I am hitting this in my dmesg with an external 
drive I have.
I am wondering if this is a bug or just a common issue.
8518.918519] [ cut here ]
[ 8518.918528] WARNING: CPU: 1 PID: 13778 at 
/build/buildd/linux-3.13.0/fs/btrfs/super.c:254 
__btrfs_abort_transaction+0x50/0x110 [btrfs]()
[ 8518.918529] btrfs: Transaction aborted (error -5)
[ 8518.918530] Modules linked in: btrfs raid6_pq libcrc32c xor ses enclosure 
usb_storage bnep rfcomm bluetooth hid_generic usbhid hid eeepc_wmi asus_wmi 
sparse_keymap intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp 
kvm_intel kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel 
snd_hda_codec_hdmi aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper 
cryptd serio_raw snd_hda_codec_realtek lpc_ich snd_hda_intel snd_hda_codec 
snd_hwdep snd_seq_midi snd_seq_midi_event snd_pcm snd_rawmidi snd_page_alloc 
fglrx(POF) snd_seq parport_pc snd_seq_device snd_timer ppdev wmi mei_me snd mei 
mac_hid lp parport soundcore amd_iommu_v2 video ahci libahci r8169 mii
[ 8518.918560] CPU: 1 PID: 13778 Comm: umount Tainted: PF   W  O 
3.13.0-34-generic #60-Ubuntu
[ 8518.918561] Hardware name: System manufacturer System Product Name/P8Z68-V 
LE, BIOS 3506 01/17/2012
[ 8518.918562]  0009 8801c9ad5c50 8171bd94 
8801c9ad5c98
[ 8518.918564]  8801c9ad5c88 810676cd fffb 
880211d72800
[ 8518.918566]  8801c49d8000 a0bb2e90 060b 
8801c9ad5ce8
[ 8518.918568] Call Trace:
[ 8518.918573]  [] dump_stack+0x45/0x56
[ 8518.918576]  [] warn_slowpath_common+0x7d/0xa0
[ 8518.918578]  [] warn_slowpath_fmt+0x4c/0x50
[ 8518.918583]  [] __btrfs_abort_transaction+0x50/0x110 
[btrfs]
[ 8518.918591]  [] cleanup_transaction+0x6e/0x290 [btrfs]
[ 8518.918594]  [] ? prepare_to_wait_event+0x100/0x100
[ 8518.918601]  [] btrfs_commit_transaction+0x6ea/0x970 
[btrfs]
[ 8518.918608]  [] btrfs_commit_super+0x8f/0xa0 [btrfs]
[ 8518.918614]  [] close_ctree+0x1e0/0x290 [btrfs]
[ 8518.918617]  [] ? evict_inodes+0x11c/0x130
[ 8518.918622]  [] btrfs_put_super+0x19/0x20 [btrfs]
[ 8518.918625]  [] generic_shutdown_super+0x72/0xf0
[ 8518.918627]  [] kill_anon_super+0x12/0x20
[ 8518.918631]  [] btrfs_kill_super+0x16/0x90 [btrfs]
[ 8518.918634]  [] deactivate_locked_super+0x3d/0x60
[ 8518.918636]  [] deactivate_super+0x46/0x60
[ 8518.918638]  [] mntput_no_expire+0xd6/0x170
[ 8518.918640]  [] SyS_umount+0x8e/0x100
[ 8518.918642]  [] tracesys+0xe1/0xe6
[ 8518.918644] ---[ end trace 1a6b295c1d8ad4c3 ]---
Nick  

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Curious about corner case in btrfs code

2014-08-27 Thread nick


On 14-08-27 01:09 AM, Aruna Hewapathirane wrote:
> Nick,
> 
> Have a look here please: http://www.brendangregg.com/linuxperf.html
> 
> Aruna
> 
> 
> On Wed, Aug 27, 2014 at 12:47 AM, nick  wrote:
> 
>>
>>
>> On 14-08-27 12:08 AM, valdis.kletni...@vt.edu wrote:
>>> On Tue, 26 Aug 2014 21:49:51 -0400, Greg Freemyer said:
 A decade plus ago when I first got interested in using xfs for a
>> production
 system, the freeze feature would randomly fail for me.  I was able to
>> update
 the xfstest that exercised that code and get a reproducer.  I didn't do
>> the
 actual kernel fix, but I still think of that as my first significant
 contribution to the kernel.
>>>
>>> Never underestimate the value of that.  Clued users who submit good
>>> bug reports and who can replicate/test patches or provide good test
>>> cases are worth their weight in gold.
>>>
>> Good to known after testing file systems and what tools are the standard
>> in the community.
>> Regards Nick
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
> 
Thanks  for the web page I will start reading it later.
Cheers Nick 

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: cdev_init and struct file_operations

2014-08-27 Thread John de la Garza
On Tue, Aug 26, 2014 at 09:18:57PM -0400, valdis.kletni...@vt.edu wrote:
> On Tue, 26 Aug 2014 20:48:41 -0400, John de la Garza said:
> > Why does the code from ldd3 set dev->cdev.ops = &scull_fops again?
> 
> Probably because when ldd3 was written several years ago, cdev_init()
> didn't set it, so it wasn't "again"
> 
> > Doesn't cdev_init already do that?
> 
> It does *now*.
> 
> Remember that ldd3 was written about 6 million lines of code ago

It did then, too (unless I'm missing something)

linux$  git branch
* (detached from v2.6.12)
  master

from v2.6.12

void cdev_init(struct cdev *cdev, struct file_operations *fops)
{
memset(cdev, 0, sizeof *cdev);
INIT_LIST_HEAD(&cdev->list);
cdev->kobj.ktype = &ktype_cdev_default;
kobject_init(&cdev->kobj);
cdev->ops = fops;
}

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Hi I'm new here

2014-08-27 Thread John de la Garza
On Wed, Aug 27, 2014 at 04:13:00PM +0800, Bowen wrote:
> I am just a new man in kernel development, there is a question bother me for 
> a time. Is it neccessary to have a virtual machine when developing or 
> debugging kernel?

Being able to access the machine monitor is very useful at times.  It
lets you look at registers, memory, hardware, etc.  I also appreciate
being able to quickly boot a kernel with the -kernel option.

see: http://en.wikibooks.org/wiki/QEMU/Monitor

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: which function can replace “create_proc_info_entry” in 2.6.32 of Linux kernel?

2014-08-27 Thread anupam kapoor
> [Wed, 27 Aug 2014 16:59:23 +0800]: "lxgeek" (lxgeek):

,[ lxgeek ]
| hi all:
| The 2.6.32 kernel don't have the function of "create_proc_info_entry".
| Which function can replace it?
| Thank you.
`
commit 80e928f7ebb958f4d79d4099d1c5c0a015a23b93

kind regards
anupam

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


which function can replace “create_proc_info_entry” in 2.6.32 of Linux kernel?

2014-08-27 Thread lxgeek
hi all:
The 2.6.32 kernel don't have the function of "create_proc_info_entry".
Which function can replace it?
Thank you.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Hi I'm new here

2014-08-27 Thread Pranay Srivastava
On Wed, Aug 27, 2014 at 1:43 PM, Bowen  wrote:
> I am just a new man in kernel development, there is a question bother me for
> a time. Is it neccessary to have a virtual machine when developing or
> debugging kernel?

If you are working on something unrelated to real-hardware then using
a virtual machine can help you, like not having frequent reboots
of your physical machine maybe you've only one development machine
then you can try and attach gdb to the virtual machine
from your host machine.

If however you've a real hardware then using a real machine would be better.

> Thanks.
>
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
---P.K.S

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Workflow improvements when sending patches with format-patch && send-email ?

2014-08-27 Thread Bjørn Mork
Matthias Beyer  writes:

> Hi,
>
> I have a problem related to my workflow when patching kernel sources.
> What I do by now, when sending patches:
>
> scripts/get_maintainer.pl --file my/patched/file.c
>
> git format-patch -s -n --cover-letter
> # and then appending _every single mail from the get_maintainer.pl
> # call with either --to or --cc
> # and the commit range

You don't really need to append the addresses in this step. Using --to
and --cc with "git send-email" is sufficient.

> git send-email --no-chain-reply-to
> # and then appending _every single mail from the get_maintainer.pl
> # call with either --to or --cc
> ./00*
>
> The second step is mainly copy-paste from the format-patch call, but I
> guess you already notice my issue: I have to "hand-copy" every email
> address from the get_maintainer.pl call.
>
> I also send my patches to two persons which do not get listed from the
> get_maintainer.pl call most of the time, plus I do not send my patches
> to the LKML directly (but the driverdev ML).
>
> I consider this hard work, especially when having a lot of _small_
> patchsets, as I do this for every single patchset and it really annoys
> me.
>
> Are there tools somewhere to simplify these steps? Something like
>
> "generate & send patches from bla-blubb...foobazbar"
>
> and then it:
>
> 1) Gets mailaddrs from get_maintainer.pl
> 2) lets me add additional and delete receivers
> 3) asks me which one gets a --to and which one a --cc
> 4) generates the patches with format-patch
> 5) (optionally) runs checkpatch.pl on it
> 6) sends the patches with send-email after confirmation

I don't think we want to automate the last step. Kernel coders are fast
learners and "confirmation" is quickly turned into automatically
pressing 'y' without thinking...

> Are there some tools out there? Or how do you guys do this? Or are
> there tweaks built-in in git that I don't know yet?

I have wondered about the same thing wrt get_maintainer.pl and git
send-email. You can of course script this somewhere else, but it seems
to me that a new switch to get_maintainer.pl creating a suitable would
be useful?

(Note that the copy/paste can be made easier by using the existing
switches: 
 scripts/get_maintainer.pl --nomultiline --separator ", --cc=" --file 
my/patched/file.c
but this can still be improved a lot)


Bjørn

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Hi I'm new here

2014-08-27 Thread Fernando Apesteguía
El 27/08/2014 10:14, "Bowen"  escribió:
>
> I am just a new man in kernel development, there is a question bother me
for a time. Is it neccessary to have a virtual machine when developing or
debugging kernel?

No, it's not. But it could be convenient if you don't want to hurt your
machine.

> Thanks.
>
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Hi I'm new here

2014-08-27 Thread Bowen
I am just a new man in kernel development, there is a question bother me for a 
time. Is it neccessary to have a virtual machine when developing or debugging 
kernel?
Thanks.___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies