w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Linux Device Drivers 3rd Ed and 3.2 kernel
I like LDD3. The teaching style is outstanding. I see the most references to that text in SO, LWN etc. I tried just reading it, that had limited value. It was better to get the examples built and running, play some e.g. with scull, then study the text hard to see how the code was really working. But, to do that with modern kernels, you need updated code. I found martinezjavier code built OK with 3.1 kernel (I deleted tty from Makefile, and added simple_open() definition) then life was great. Also I found some nice work from cs.fsu, including online cross-reference. Cooperstein text also exists, and has exercise solutions with multiple kernel versions, but I haven't used this text.

Categories : Linux

How can I determine what drivers are available to use with odbc in php (on a linux system)?
You should have a file called odbcinst.ini (probably in /etc or /usr/local/etc but you can locate it with the command odbcinst -j). This file defines your ODBC drivers. Each driver is named within the [] in each section. You might find Linux ODBC useful as it contains a thorough explanation of unixODBC, how it works and how to define data sources.

Categories : PHP

Any test tool for the Linux network device drivers testing
Check SymDrive , AutoTest , Linux Driver Verification and Linux Test Project

Categories : Testing

How to compile ixgbe network drivers on other linux kernel version
Install the kernel-devel rpm for 2.6.39.4 and compile against the new kernel. In Makefile use the Kernel directory as 2.6.39.4. Usually located in /usr/src/kernels/

Categories : Linux

Concurrency in the Linux network drivers: probe() VS ndo_open(), ndo_start_xmit() VS NAPI poll()
Wrt the ".ndo_start_xmit VS NAPI poll" qs, well here's how am thinking: the start-xmit method of a network driver is invoked in NET_TX_SOFTIRQ context - it is in a softirq ctx itself. So is the NAPI receive poll method, but of course in the NET_RX_SOFTIRQ context. Now the two softirq's will lock each other out - not race - on any local core. But by design intent, softirq's can certainly run in parallel on SMP; thus, who is to say that these two methods, the ".ndo_start_xmit VS NAPI poll", running in two separate softirq context's, will not ever race? IOW, I guess it could happen. Be safe, use spinlocks to protect global data. Also, with modern TCP offload techniques becoming more prevalent, GSO is/could also be invoked at any point. HTH!

Categories : Networking

What is the difference between misc drivers and char drivers?
Edit: I thought you were talking about drivers/misc drivers, but I see you're refering to character drivers using misc_register (and all the API in drivers/char/misc.c). You should specify this in your question. In this case, the misc API seems to make your life easier when you're writing a small character driver and do not want to need to allocate a new major number only to use one minor number, for example. It simplifies things, but all the file operations are still available using the fops member of struct miscdevice. The basic difference is you only get one minor number per misc device. My previous, unrelated answer was, for the record: Have a quick look at drivers/misc: you won't find any "misc core" out there. This means: misc is not a device class; it's just a bunch of drivers th

Categories : C

Which Oracle drivers do I need for ASP.NET 4.5?
The ODAC112021Xcopy_x64.zip might give you the dll's and client you'll need. Take a look at this previous answer for more detail about deployment of the application.

Categories : Asp Net

Difference between HAL and Drivers
From this doc HAL The hardware abstraction layer defines the standard interface that the camera service calls into and that you must implement to have your camera hardware function correctly. Kernel driver The camera's driver interacts with the actual camera hardware and your implementation of the HAL. The camera and driver must support YV12 and NV21 image formats to provide support for previewing the camera image on the display and video recording.

Categories : Android

Safety of the drivers
You shouldn't be exposing mongodb to the internet. Instead your mobile app should talk to a server app, which, in turn, will talk to private instance of mongodb (not available to the world, only to the server app). And in that server app you can make necessary authentication and checks.

Categories : Security

codeigniter drivers
Here's two: http://codebyjeff.com/blog/2012/01/forms-with-less-pain-using-ci-drivers http://www.kevinphillips.co.nz/news/codeigniter-drivers-tutorial/ Driver feature isn't exactly "new" :-)

Categories : Codeigniter

Laravel Session Drivers?
It's quite easy. Driver defines where session data will be stored. native - session will be handled by internal PHP rutines cookie - session will be stored in cookies database - session will be stored in database (by default in table sessions) memcached/redis - use one of this daemons as a session storage array - session will be stored in a plain array (it's handled by MockArraySessionStorage) array driver means that session is only per request (stored during PHP runtime), and after that it disappears :)

Categories : Laravel

PDO drivers are installed, but connection test says otherwise
http://docs.php.net/manual/de/pdo.construct.php says: PDO::__construct() ( string $dsn, ... [...] In general, a DSN consists of the PDO driver name, followed by a colon, followed by the PDO driver-specific connection syntax try it with (edit: fixed Database= keyword) new pdo( 'sqlsrv:Server=websvrsqlwebdata,1433;Database=xxxx', see also: http://php.net/ref.pdo-sqlsrv.connection

Categories : PHP

Listing drivers in ring0/kernel?
If you REALLY want to write your own code for this, then here's a "Device Driver Information" page on Microsfts website. From that, you should be able to pull together the pieces (it's pretty similar to listing the currently running processes).

Categories : C++

VirtualBox - How to write Drivers/Plugins?
The network handling in a VMM ("Virtual Machine Monitor" or "Hypervisor") is typically done by a simple interface that "pretends" to be a network card towards the VM and that is a bridge or switch type interface towards the host's network connection. I suspect you will not be able to easily attach to that, and almost certain that there is no "SDK" interface to it - I haven't worked with VirtualBox, but I have worked on Xen Hypervisor (which is open source, but even then, there's no easy interface to intercept packets in a meaningful way). Your best bet is probably to implement this on the host's side of the bridge or switch interface that the VMM provides. Most OS's have ways to hook into a network flow on the native side for firewall purposes. (I'm still waiting for the SDK document

Categories : C++

How can I setup Fluentlenium to run in different browser drivers?
Have an abstract createDriver() function that is overridden by each type of driver. Each driver should return a correctly configured driver, which is then stored, and returned when you call getDefaultDriver();

Categories : Selenium

Use precompiled drivers to build aosp
You should be able to use pre-compiled drivers. Even building AOSP for some of the nexus devices requires downloading the binary blobs and adding them into your source tree so that the images are built and able to interact with some of the hardware like the sensors and camera in some cases. So what you are trying to do should be possible. Hope that helps.

Categories : Android

How to install CUDA 5.5 drivers in FC18?
If you are on 64-bit FC18, and you are having trouble with the RPM method, just use the installer method instead. You can find the CUDA 5.5 kits here. Here is the direct link to the installer. Don't forget the getting started guide. After you've finished with the installer, if it puts a driver version that you don't want on your system, you can go back and re-install your 319.32 driver. Or you can just opt-out of the driver install step when using the installer method. I would check to see if the cuda 5.5 installed driver works before switching back to 319.32. My sense is that 319.32 should be OK with CUDA 5.5, but you may need to find a newer NVIDIA driver that works with your video card and also works with CUDA. The driver that comes with CUDA 5.5 should work with most or all GPU

Categories : Linux

how can I run tests using different capybara drivers on different platforms in rails?
Couldn't you do something along the lines of if RUBY_PLATFORM =~ /mac/ Capybara.javascript_driver = :firefox else Capybara.javascript_driver = :webkit end in spec/support/env.rb? I don't have a mac, so I'm not sure what the value of RUBY_PLATFORM should be, but by running puts RUBY_PLATFORM in irb, I'm sure you can figure out an appropriate value.

Categories : Ruby On Rails

how to configure a database drivers in java automaticaly
You don't need to create a DSN (Data Source Name) to use an ODBC Driver. You can use a) FILEDSN or b) DSN-less connections. File DSNs are where you put the attribute and value pairs which describe the database connection in a file and pass FILEDSN=c:path_to_file in SQLDriverConnect. DSN-less connections are where you pass all the attribute/value pairs required to SQLDriverConnect and it must contain a DRIVER={whatever the driver is called}.

Categories : Java

call LAPACK drivers/functions from python
I only have a little experience wrapping Fortran, but as I understand it, the standard way to wrap LAPACK functions that aren't already included in SciPy is to use the tool f2py that is included with NumPy. Some basic instructions can be found at http://wiki.scipy.org/Cookbook/F2Py#head-9c22e0d6fa6b16650feea2c271233a8c47e8d051 You can also wrap it through Cython. Doing it that way, you compile the Fortran file and link against it as shown at http://fortran90.org/src/best-practices.html#interfacing-with-python There it describes how to use either Cython or ctypes to wrap a Fortran subroutine. That particular example is available online at https://github.com/certik/fortran90_question/tree/master/fcython_mesh Make sure you pay attention to how your array is arranged in memory (C-contiguous v

Categories : Python

macports apache2 install missing pdo drivers
Here is what worked for me: sudo port install php5-sqlite sudo port install php5 +apache2 +sqlite The second line here didn't seem to do anything, but you never know. After restarting I noticed I didn't have imagemagick, which I thought I already had, so sudo port install php5-imagick Now restarting apache2 the "macports" way: sudo port unload apache2 sudo port load apache2 And looking at phpinfo, I have sqlite2 and sqlite (which, confusingly, is sqlite3) drivers enabled for pdo.

Categories : Sqlite

do I have odbc/jdbc and their drivers installed and configured by default?
I have used just sql server as db by now but never installed and configured odbc or its driver,what is this? I thought you said you knew what ODBC was? Kind of sounds like you are not not sure? An odbc driver is an open database driver connection which is a generic way to connect to most databases. It might work for basic functionality but it's typically best to get a more specific driver type for the database you're using. do I have them installed and configured by default? You usually have odbc drivers by default (I'm not sure what system you're on or even then how it was set up) but the connections are not configured. You can configure them as environment variables in Windows (if that's what you're using) or within your application as needed. Is it always necessary to

Categories : Java

Is it possible to write Windows 8 drivers without Visual Studio professional?
Yeah, now WDK requires MSVC 2012 installed before : see http://msdn.microsoft.com/en-US/windows/hardware/hh852362#_System_Requirements. Also now WDK don`t include toolset (compiler, linker, etc) and i think there are no way to bypass this.

Categories : Misc

Connecting to multiple databases using same JDBC drivers performance
Opening a database connection is an expensive operation; if possible you should connect to each database once and reuse the connection for all queries made to that database (also known as connection pooling). It's not clear if this is what you're already doing. Another thing that seems strange is that you have made the openConnection method synchronized. I see no need for doing that, and depending on how your code is structured it may mean that only one thread can be opening a connection at a given time. Since connecting takes a long time you'd want each thread to make its connection in parallel.

Categories : Java

Is there an equivalent of RegQueryInfoKey for Windows Kernel Mode Drivers?
You can use ZwXxx functions in the kernel mode, in particular, ZwQueryKey with KeyFullInformation parameter. This API is quite similar to its NtXxx analogues, and you can use both API set in the kernel mode. The difference is that ZwXxx doesn't perform some access check and parameters validation, and thus runs a little faster. For more information see this article

Categories : C++

Can't debug correctly Windows drivers with Visual Studio
I recommend to forget using Visual Studio for driver development/debugging because, on my opinion, is not solid enough. But targetting the debugging process, it is better to install VisualDDK and then launch vmmon/vmmon64. In the installed application you will find a folder named "target" with an application named DDKLaunchMonitor.exe, install it in the virtual machine (it will create a boot menu option to activate kernel debugging) When you want to debug your driver, launch vmmon, activate the option to launch windbg at vm startup, start your vm and when windows boots it will load windbg and attach to the vm. The install your driver as desired and learn windbg. I know this answer does not solve you problem with VS but using windbg directly is faster and better.

Categories : Visual Studio

mongod memory leak inserting documents via C++ drivers
When you call clear, it clears the elements, but might not reduce the capacity. This has been answered here Either Old skool; std::vector<T>(v).swap(v); Note that C++11 has shrink_to_fit which might help, but may do nothing.

Categories : C++

MongoDB - Inconsistent representation of binary data using C++ and Java drivers
There is no difference here. The data is the same, only the formatters that make it human readable present it in a different format. [...] print them using the jsonString() method This is the point, your looking at formatted output: "0x80", "80", 128 and -128 can all mean the same thing. Data is always interpreted according to some convention. In the case of "0x80", the "0x"-prefix is a somewhat widespread convention for indicating hexadecimal notation. "80" requires you to know that the data shall be interpreted as hex string and corresponds to a binary value of 1000000, which, for an integer is equal to the decimal value of 128. If the value is interpreted as byte, however, it corresponds to -128. Your code should not look at the formatted output, but compare to a field or propert

Categories : Mongodb

Retrieve all drivers software data in visual basic 2010
WMI is your friend. Here's a simple routine that will provide you with all the information you're requesting from all the installed drivers: Dim objWMIService = GetObject("winmgmts:\. ootcimv2") Dim colItems = objWMIService.ExecQuery("Select * from Win32_PnPSignedDriver") For Each objItem In colItems Console.WriteLine("Manufacturer: " + objItem.Manufacturer) Console.WriteLine("Name: " & objItem.DeviceName) Console.WriteLine("Version: " & objItem.DriverVersion) Console.WriteLine("Signed: " & objItem.IsSigned) Console.WriteLine() Next For more information about the properties provided by the "Win32_PnPSignedDriver" object, please refer to: http://msdn.microsoft.com/en-us/library/windows/desktop/aa394354%28v=vs.85%29.aspx

Categories : Vb.Net

How does Android integrate hardware drivers provided by the phone manufacturer?
You may have to install the drivers on your own for some devices if you are on a PC. You can go to that phone manufacturer's website and they have a download link. Mac seems a little better in finding the device drivers

Categories : Android

Exec(Linux). How it functions internally? Linux executable attributes(rlimit)
The RLIMIT_CORE is used to place a limit on the amount of info that coredump is allowed to produce, before it is aborted. Once this limit is hit, no more info is logged and the message Aborting Core is logged to the console. From the man page of core : A process can set its soft RLIMIT_CORE resource limit to place an upper limit on the size of the core dump file that will be produced if it receives a "core dump" signal. Use setrlimit() to configure RLIMIT_CORE to a larger value to obtain complete coredumps. The most common format of executables/shared-objects is ELF. On Linux, the dynamic loading and linking of these shared-objects is performed by ld.so ld.so is loaded in the address space of a newly created process (by exec in this case) and executed first. This is possible as

Categories : Android

Linux users', specifically Apache, permissions settings, [Linux noob :]
usually any daemon will need to access a number of ressources. it is therefore good practice to run each daemon under a special user:group, rather than nobody:nogroup. traditionally (e.g. on Debian systems) apache runs as www-data:www-data. finally, user permissions take precedence over group permissions (which in turn take precedence over other permissions). this means that a directory where the user does not have write perms but the user's group can write is effectively r/o for that user (but not for other members of the group)

Categories : Linux

Purpose of Curly Brace Usage of C Code found in Linux (include/linux/list.h)?
This is a GNU language extension known as a statement expression; it's not standard C.

Categories : C

What dependency scope for Derby JDBC drivers in intergration scope (cayenne)
To ensure that the Derby driver is available during plugin execution (vs during your code compilation), you need to add it as a dependency of the plugin itself: <plugin> <groupId>org.apache.cayenne.plugins</groupId> <artifactId>maven-cayenne-plugin</artifactId> <version>3.2M1</version> <dependencies> <dependency> <groupId>org.apache.derby</groupId> <artifactId>derbyclient</artifactId> <version>10.10.1.1</version> </dependency> </dependencies> .... </plugin>

Categories : Maven

What's a good way to set up Closure Compiler on Linux? Or, where should Java .jar's live on a Linux?
If you using the java command directly, then you'll have to provide a path to the jar in question. It's probably easier to place the jar in one place and create a shell script that handles the invocation and jar path.

Categories : Java

How to turn a Linux application in C/C++ into a Desktop Enviroment for a Linux distro?
You either want to create a boot loader, or you want to replace the 'shell'. This would be governed by per-user or global xinit and Xsession files.

Categories : C

Write C++ on Windows but use Linux System calls through a Linux emulator
You've already tagged your question with Cygwin. That seems like the best solution for what you want. Cygwin is basically a collection of programs which emulate a GNU/LInux environment through the use of a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality. Here's the link to the documentation for its API Edit: Most of the Cygwin source code that I've looked at is written in C++ and makes system calls using MS Windows API to do provide the *nix emulation. The source is well written and very readable (even to to a non-C++ programmer such as myself). I think using Cygwin would be a good transition from programming on Windows to a GNU/Linux environment.

Categories : C++

Do i need to install mono on every Linux PC to run .NET application on Linux platform?
"can I run a mono application on a machine that doesn't have mono installed": no; the same as you can't run a java application on a machine that doesn't have java installed. And at the same time (to both): yes. There are tools that attempt to make this work, but they tend to be fiddly and a bit unreliable. However, it should also be noted that several (not all, by any means) distros ship with mono by default.

Categories : Dotnet

fedora linux --- compiling first linux module
As guido said, you have to match your current kernel and the kernel-devel package. To get your kernel version run uname -r I get 3.6.10-4.fc18.x86_64, download that kernel-devel version sudo yum install kernel-devel-3.6.10-4.fc18 Or update your system and boot with the new kernel, I believe those two will automatically match.

Categories : Linux

How to fix TPM in Redhat Linux? RedHat Linux hang on first time to boot after installing
After all my search I found out that in Redhat 6 there is a problem tboot and best way to fix it is to remove tboot package (it is located in System Base>Base>tboot.6) For more info about tboot you can check these links: enter link description here

Categories : Linux



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.