Linux Kernel Modules: When to use trymoduleget / moduleput
- date: November 17, 2009
I was reading the LKMPG ( See Section 4.1.4. Unregistering A Device ) and it wasn't clear to me when to use the try_module_get / module_put functions. Some of the LKMPG examples use them, some don't.
To add to the confusion, try_module_get appears 282 times in 193 files in the 2.6.24 source, yet in Linux Device Drivers ( LDD3 ) and Essential Linux Device Drivers, they appears in not even a single code example.
I thought maybe they were tied to the old register_chrdev interface ( superseded in 2.6 by the cdev interface ), but they only appear together in the same files 8 times:
find -type f -name *.c | xargs grep -l try_module_get | sort -u | xargs grep -l register_chrdev | sort -u | grep -c .
So when is it appropriate to use these functions and are they tied to the use of a particular interface or set of circumstances?
I loaded the sched.c example from the LKMPG and tried the following experiment:
:~/kernel-source/lkmpg/2.6.24$ tail /proc/sched -f &
Ubuntu vs Linux Mint
location: ubuntuforums.com - date: November 14, 2012
What is the difference between the most recent versions of Ubuntu and Linux Mint? Which one is better to use?
Linux Mint Cinnamon vs. Elementary Pantheon
location: ubuntuforums.com - date: May 20, 2012
Many people are very excited about Linux Mint's Cinnamon. Personally I find it a step back in almost every single way. It looks cluttered, has less customization than gnome2 (or xfce, or kde4, or any other popular non-gnome) and doesn't really have anything special. Unity, whether you like it or not (I do) is definitely different than the standard Linux desktop, Gnome Shell is a similar story. Many people are complaining that these new gnome3 shells, interfaces and forks are plainly bad. So, they think cinnamon will be better with its more classic looks. But I wish people would look at the Elementary Team's Pantheon environment. It is lean, looks very functional, has a nice and good-looking (even if you think it is mac-ish) design and is completely modular! And that is why I am so excited about it. By default it has function and form but you can change and swap out anything you want.
Here is a summery of what the next Elementary OS will be:
Ubuntu 10.10 vs Linux Mint 10
location: ubuntuforums.com - date: November 23, 2010
I've been looking at reviews for Linux Mint. So far, it sounds pretty good. The one thing I see come up more often is the better driver support is seem to offer over Ubuntu. I've used Linux Mint 9 quite a bit, but only played around with Mint 10 rc for a few days in VB. While I was impressed, it has never really tempted me to switch from Ubuntu. Though I like Mint, I feel far more at home using Ubuntu, so would never give up Ubuntu for it.
What does the community think about the comparison between the two in terms of stability, support, and others?
Ubuntu 12.04 LTS versus LMDE (Linux Mint Debian) 201204?
location: ubuntuforums.com - date: April 25, 2012
http://blog.linuxmint.com/?p=1979 I'm really having to ponder this one? Mate 1.2, when idle, really does use half as much RAM as Unity. That was a surprise, especially since I'm comparing 64-bit vs. 64-bit. I have yet to notice any of the rough edges and quirks that are typical of a Mint release.
Linux Ubuntu vs Linux Mint OSs
location: ubuntuforums.com - date: August 18, 2010
Pretty much self explanatory, so yea.
Please dont say things like ubuntu looks ugly as it is customizable, or that ubuntu generally uses gnome becuase it can use kde too and that goes for mint as well.
what im looking for is actual performance tests and level of customization.
What are the pros and cons for mint over ubuntu?
personal experiences are welcome but only if they are specific.
btw, this is clearly comparing the latest stable editions.
ubuntu 12.10 considered very slow vs linux mint?
location: ubuntuforums.com - date: March 5, 2013
I have a 1 month old, brand new laptop (thinkpad). It's basically the "reference" laptop to have for linux, and I installed ubuntu 12.10, super modern hardware.
I found it to be very slow out of the box. Is it the unity interface? Any way we can disable this completely?
Running calibre, eclipse, and chrome, and thunderbird would result in big time harddrive "thrashing" where there's constant activity.
I was thinking about buying an SSD simply b/c things were so slow.
On a whim I installed linux mint 14 (cinnamon desktop). I am not exaggerating when I say that it is literally 5 times as fast in every area.
I can run the aforementioned apps simultaneously without any problems. It's been a revelation.
My SSD purchase is on the back burner now.
I'm sure that the Unity interface has been a complaint and there's always going to be people who dislike change. Or maybe it's most people who dislike change.
But I found it quite hard as a newbie to know what is
Linux Mint 13 KDE vs Kubuntu 12.04: Is Mint KDE really better?
location: ubuntuforums.com - date: August 17, 2012
I'm trying to convert someone to a *buntu and I think KDE would be really perfect for him. However when I tried Kubuntu myself it ran decently, but I got a lot of crash reports etc. Also I read a few Kubuntu 12.04 reviews and they didn't seem to be really good either... Also a lot of people say Kubuntu is a bad KDE distro and much worse than the other *buntus. However most people seem to be really excited about Linux Mint KDE edition (which is based on Ubuntu, not Kubuntu).
So my question is: "Is Linux Mint KDE (as of version 13) really better than Kubuntu 12.04?"
I'm also looking at Cinnamon (which I'm probably going to "use" instead of KDE, if Linux Mint KDE is just as worse as Kubuntu). I myself am happily using Unity (it fits me just right), but I think maybe Unity is a bit to confusing (global menu bar, to distinguish running programs and closed programs in the dock etc.). However I myself am really fond of the search functionality and I woul
Does Ubuntu 13.04 + Cinnamon = Linux Mint?
location: ubuntuforums.com - date: June 23, 2013
I know Mint is built upon Ubuntu. So, if you take Ubuntu 13.04 and add Cinnamon, is that the same as Linux Mint or is there more to Mint then just Cinnamon?
Ubuntu vs Linux Mint
location: ubuntuforums.com - date: December 3, 2009
I've been hearing a lot of good things about Linux Mint lately, and was wondering what you guys think about it. Do you think it's good enough to warrant uninstalling Ubuntu in favour of it, or Ubuntu will be just fine for the time being? If you wouldn't mine, could you give me a short comparative analysis? Like the differences between installations, and does Mint use the same package manager, terminal, compiz, things like that, as Ubuntu?
Also, this is slightly off topic, but if I were to format my Ubuntu partition, would Grub go with it?
Page: 1 2 3 4 5 6 7 8 9 10